spec/spec_helper.rb in message_bus-1.1.1 vs spec/spec_helper.rb in message_bus-2.0.0.beta.1
- old
+ new
@@ -9,10 +9,15 @@
mocks.syntax = :should
end
# to debug hanging tests
# config.before :each do |x|
- # p x.metadata[:location]
+ # $start = Time.now
+ # puts "Start: #{x.metadata[:location]}"
+ # end
+ #
+ # config.after :each do |x|
+ # puts "#{x.metadata[:location]} #{Time.now - $start}"
# end
end
def wait_for(timeout_milliseconds)
timeout = (timeout_milliseconds + 0.0) / 1000