Stub print_status to allow testing of workspace...

and other things that may use print_status rather than print line
bug/bundler_fix
Jon Hart 2015-08-28 11:10:35 -07:00
parent 52a11cc383
commit 0f9032100d
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,10 @@ shared_context 'Msf::UIDriver' do
@output ||= []
@output.concat string.split("\n")
end
driver.stub(:print_status).with(kind_of(String)) do |string|
@output ||= []
@output.concat string.split("\n")
end
driver.stub(:print_error).with(kind_of(String)) do |string|
@error ||= []
@error.concat string.split("\n")