Skip to content

Commit abdd72e

Browse files
author
us3r777
committed
Refactor spec to match lib/msf/jboss
Moved bean_hsell_scripts_spec to scripts_spec. Fixed a typo.
1 parent 403eae3 commit abdd72e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/lib/msf/http/jboss/bean_shell_scripts_spec.rb renamed to spec/lib/msf/http/jboss/scripts_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
require 'msf/core'
55
require 'msf/http/jboss'
66

7-
describe Msf::HTTP::JBoss::BeanShellScripts do
7+
describe Msf::HTTP::JBoss::Scripts do
88
subject do
99
mod = ::Msf::Exploit.new
1010
mod.extend Msf::HTTP::JBoss
@@ -17,7 +17,7 @@
1717
it { expect(subject.generate_bsh(:create, {})).to include('String jboss_home = System.getProperty("jboss.server.home.dir");') }
1818
end
1919

20-
context "when :create type is used" do
20+
context "when :delete type is used" do
2121
it { expect(subject.generate_bsh(:delete, {})).to include('String jboss_home = System.getProperty("jboss.server.home.dir");') }
2222
end
2323

0 commit comments

Comments
 (0)