spec/spec_helper.rb in serverspec-0.2.11 vs spec/spec_helper.rb in serverspec-0.2.12

- old
+ new

@@ -8,17 +8,28 @@ module Serverspec module Backend class Ssh def do_check(cmd) if cmd =~ /invalid/ - { :stdout => '', :stderr => '', :exit_code => 1, :exit_signal => nil } + { + :stdout => ::RSpec.configuration.stdout, + :stderr => ::RSpec.configuration.stderr, + :exit_status => 1, + :exit_signal => nil + } else - { :stdout => ::RSpec.configuration.stdout, :stderr => '', :exit_code => 0, :exit_signal => nil } + { + :stdout => ::RSpec.configuration.stdout, + :stderr => ::RSpec.configuration.stderr, + :exit_status => 0, + :exit_signal => nil + } end end end end end RSpec.configure do |c| c.add_setting :stdout, :default => '' + c.add_setting :stderr, :default => '' end