lib/rspec-system/spec_helper.rb in rspec-system-2.2.1 vs lib/rspec-system/spec_helper.rb in rspec-system-2.3.0
- old
+ new
@@ -27,22 +27,21 @@
c.before :suite do
# Before Suite exceptions get captured it seems
begin
start_nodes
rescue => ex
- puts ex.inspect + " in"
- puts ex.backtrace.join("\n ")
+ output << ex.inspect + " in\n"
+ output << ex.backtrace.join("\n ") << "\n"
exit(1)
end
end
c.after :suite do
- puts "================================================================="
# After Suite exceptions get captured it seems
begin
stop_nodes
rescue => ex
- puts ex.inspect + " in"
- puts ex.backtrace.join("\n ")
+ output << ex.inspect + " in\n"
+ output << ex.backtrace.join("\n ") << "\n"
end
end
end