From abdd72e8c66f9da8864022adf1d489f07020356e Mon Sep 17 00:00:00 2001 From: us3r777 Date: Sun, 31 Aug 2014 19:13:40 +0200 Subject: [PATCH] Refactor spec to match lib/msf/jboss Moved bean_hsell_scripts_spec to scripts_spec. Fixed a typo. --- .../jboss/{bean_shell_scripts_spec.rb => scripts_spec.rb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename spec/lib/msf/http/jboss/{bean_shell_scripts_spec.rb => scripts_spec.rb} (96%) diff --git a/spec/lib/msf/http/jboss/bean_shell_scripts_spec.rb b/spec/lib/msf/http/jboss/scripts_spec.rb similarity index 96% rename from spec/lib/msf/http/jboss/bean_shell_scripts_spec.rb rename to spec/lib/msf/http/jboss/scripts_spec.rb index 33343e1a28..0d2f53b4a4 100644 --- a/spec/lib/msf/http/jboss/bean_shell_scripts_spec.rb +++ b/spec/lib/msf/http/jboss/scripts_spec.rb @@ -4,7 +4,7 @@ require 'spec_helper' require 'msf/core' require 'msf/http/jboss' -describe Msf::HTTP::JBoss::BeanShellScripts do +describe Msf::HTTP::JBoss::Scripts do subject do mod = ::Msf::Exploit.new mod.extend Msf::HTTP::JBoss @@ -17,7 +17,7 @@ describe Msf::HTTP::JBoss::BeanShellScripts do it { expect(subject.generate_bsh(:create, {})).to include('String jboss_home = System.getProperty("jboss.server.home.dir");') } end - context "when :create type is used" do + context "when :delete type is used" do it { expect(subject.generate_bsh(:delete, {})).to include('String jboss_home = System.getProperty("jboss.server.home.dir");') } end