Fix fake_function_collection_spec
This commit is contained in:
+1
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user