Fix specs

bug/bundler_fix
jvazquez-r7 2014-06-20 00:08:55 -05:00
parent ee62428248
commit 330caa8c13
8 changed files with 36 additions and 23 deletions

View File

@ -8,8 +8,7 @@ describe Rex::Exploitation::CmdStagerBase do
let(:exe) { "MZ" }
subject(:cmd_stager) do
cmd_stager = Rex::Exploitation::CmdStagerBase.new(exe)
cmd_stager
described_class.new(exe)
end
describe '#cmd_concat_operator' do

View File

@ -8,8 +8,7 @@ describe Rex::Exploitation::CmdStagerBourne do
let(:exe) { "MZ" }
subject(:cmd_stager) do
cmd_stager = Rex::Exploitation::CmdStagerBourne.new(exe)
cmd_stager
described_class.new(exe)
end
describe '#cmd_concat_operator' do
@ -20,7 +19,10 @@ describe Rex::Exploitation::CmdStagerBourne do
describe '#generate' do
it "returns an array of commands" do
expect(cmd_stager.generate).to_not be_empty
result = cmd_stager.generate
expect(result).to be_kind_of(Array)
expect(result).to_not be_empty
end
end

View File

@ -8,8 +8,7 @@ describe Rex::Exploitation::CmdStagerDebugAsm do
let(:exe) { "MZ" }
subject(:cmd_stager) do
cmd_stager = Rex::Exploitation::CmdStagerDebugAsm.new(exe)
cmd_stager
described_class.new(exe)
end
describe '#cmd_concat_operator' do
@ -26,7 +25,10 @@ describe Rex::Exploitation::CmdStagerDebugAsm do
end
it "returns an array of commands" do
expect(cmd_stager.generate(opts)).to_not be_empty
result = cmd_stager.generate(opts)
expect(result).to be_kind_of(Array)
expect(result).to_not be_empty
end
end

View File

@ -8,8 +8,7 @@ describe Rex::Exploitation::CmdStagerDebugWrite do
let(:exe) { "MZ" }
subject(:cmd_stager) do
cmd_stager = Rex::Exploitation::CmdStagerDebugWrite.new(exe)
cmd_stager
described_class.new(exe)
end
describe '#cmd_concat_operator' do
@ -26,7 +25,10 @@ describe Rex::Exploitation::CmdStagerDebugWrite do
end
it "returns an array of commands" do
expect(cmd_stager.generate(opts)).to_not be_empty
result = cmd_stager.generate(opts)
expect(result).to be_kind_of(Array)
expect(result).to_not be_empty
end
end

View File

@ -8,8 +8,7 @@ describe Rex::Exploitation::CmdStagerEcho do
let(:exe) { "MZ" }
subject(:cmd_stager) do
cmd_stager = Rex::Exploitation::CmdStagerEcho.new(exe)
cmd_stager
described_class.new(exe)
end
describe '#cmd_concat_operator' do
@ -20,7 +19,10 @@ describe Rex::Exploitation::CmdStagerEcho do
describe '#generate' do
it "returns an array of commands" do
expect(cmd_stager.generate).to_not be_empty
result = cmd_stager.generate
expect(result).to be_kind_of(Array)
expect(result).to_not be_empty
end
end

View File

@ -8,8 +8,7 @@ describe Rex::Exploitation::CmdStagerPrintf do
let(:exe) { "MZ" }
subject(:cmd_stager) do
cmd_stager = Rex::Exploitation::CmdStagerPrintf.new(exe)
cmd_stager
described_class.new(exe)
end
describe '#cmd_concat_operator' do
@ -20,7 +19,10 @@ describe Rex::Exploitation::CmdStagerPrintf do
describe '#generate' do
it "returns an array of commands" do
expect(cmd_stager.generate).to_not be_empty
result = cmd_stager.generate
expect(result).to be_kind_of(Array)
expect(result).to_not be_empty
end
end

View File

@ -8,8 +8,7 @@ describe Rex::Exploitation::CmdStagerTFTP do
let(:exe) { "MZ" }
subject(:cmd_stager) do
cmd_stager = Rex::Exploitation::CmdStagerTFTP.new(exe)
cmd_stager
described_class.new(exe)
end
describe '#cmd_concat_operator' do
@ -20,7 +19,10 @@ describe Rex::Exploitation::CmdStagerTFTP do
describe '#generate' do
it "returns an array of commands" do
expect(cmd_stager.generate).to_not be_empty
result = cmd_stager.generate
expect(result).to be_kind_of(Array)
expect(result).to_not be_empty
end
end

View File

@ -8,8 +8,7 @@ describe Rex::Exploitation::CmdStagerVBS do
let(:exe) { "MZ" }
subject(:cmd_stager) do
cmd_stager = Rex::Exploitation::CmdStagerVBS.new(exe)
cmd_stager
described_class.new(exe)
end
describe '#cmd_concat_operator' do
@ -26,7 +25,10 @@ describe Rex::Exploitation::CmdStagerVBS do
end
it "returns an array of commands" do
expect(cmd_stager.generate(opts)).to_not be_empty
result = cmd_stager.generate(opts)
expect(result).to be_kind_of(Array)
expect(result).to_not be_empty
end
end