Fix fake_function_collection_spec
parent
c1a1658748
commit
6d3db92fb2
|
@ -29,8 +29,7 @@ RSpec.describe Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Fak
|
|||
describe '#to_s' do
|
||||
it 'converts function objects to a string' do
|
||||
str = subject.to_s
|
||||
expect(str).to match(/function/)
|
||||
expect(str).to match(/return/)
|
||||
expect(str).to match(/function\d+.+\(.*\)\s*{.*}/)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue