Fix fake_function_collection_spec

This commit is contained in:
Wei Chen
2018-07-18 10:23:21 -05:00
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