Fix fake_function_collection_spec

GSoC/Meterpreter_Web_Console
Wei Chen 2018-07-18 10:23:21 -05:00
parent c1a1658748
commit 6d3db92fb2
1 changed files with 1 additions and 2 deletions

View File

@ -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