Update Msfcli#guess_encoder_name spec style

MSP-11147
bug/bundler_fix
Luke Imhoff 2014-11-11 14:14:50 -06:00
parent d36da497d0
commit 577065f68d
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
1 changed files with 14 additions and 5 deletions

View File

@ -261,11 +261,20 @@ describe Msfcli do
end
context "#guess_encoder_name" do
cli = Msfcli.new([])
it "should contain a match for x86/shikata_ga_nai" do
encoder = 'x86/shikata_ga_nai'
m = cli.guess_encoder_name(encoder)
m.should eq([/encoders\/#{encoder}/])
subject(:guess_encoder_name) {
msfcli.guess_encoder_name(encoder_reference_name)
}
context 'with x86/shikata_ga_nai' do
let(:encoder_reference_name) {
'x86/shikata_ga_nai'
}
it {
is_expected.to eq(
[/encoders\/#{encoder_reference_name}/]
)
}
end
end