Stub print_status to allow testing of workspace...
and other things that may use print_status rather than print linebug/bundler_fix
parent
52a11cc383
commit
0f9032100d
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue