Stub has_read_data?

bug/bundler_fix
jvazquez-r7 2015-10-09 11:36:24 -05:00
parent eabe742b9d
commit 3d1ec54f02
No known key found for this signature in database
GPG Key ID: 38D99152B9352D83
1 changed files with 4 additions and 0 deletions

View File

@ -48,6 +48,10 @@ describe Msf::Java::Rmi::Client do
allow_any_instance_of(::StringIO).to receive(:get_once) do |io, length, timeout|
io.read
end
allow_any_instance_of(::StringIO).to receive(:has_read_data?) do |io|
false
end
end
describe "#send_header" do