parent
d36da497d0
commit
577065f68d
|
@ -261,11 +261,20 @@ describe Msfcli do
|
||||||
end
|
end
|
||||||
|
|
||||||
context "#guess_encoder_name" do
|
context "#guess_encoder_name" do
|
||||||
cli = Msfcli.new([])
|
subject(:guess_encoder_name) {
|
||||||
it "should contain a match for x86/shikata_ga_nai" do
|
msfcli.guess_encoder_name(encoder_reference_name)
|
||||||
encoder = 'x86/shikata_ga_nai'
|
}
|
||||||
m = cli.guess_encoder_name(encoder)
|
|
||||||
m.should eq([/encoders\/#{encoder}/])
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue