Land 11269, fix java_deserialization_spec check

GSoC/Meterpreter_Web_Console
Jacob Robles 2019-01-16 11:00:11 -06:00
commit 2b36491d38
No known key found for this signature in database
GPG Key ID: 3EC9F18F2B12401C
1 changed files with 2 additions and 2 deletions

View File

@ -28,9 +28,9 @@ RSpec.describe Msf::Util::JavaDeserialization do
end
context 'when default payload is not JSON format' do
it 'raises a JSON::ParserError error' do
it 'raises a RuntimeError error' do
allow(File).to receive(:read).and_return('BAD DATA')
expect{Msf::Util::JavaDeserialization::ysoserial_payload(payload_name, default_command)}.to raise_error(JSON::ParserError)
expect{Msf::Util::JavaDeserialization::ysoserial_payload(payload_name, default_command)}.to raise_error(RuntimeError)
end
end