spec/rspec_config.rb in ably-0.8.15 vs spec/rspec_config.rb in ably-1.0.0
- old
+ new
@@ -39,20 +39,21 @@
))
WebMock.enable!
end
if defined?(EventMachine)
- config.before(:example) do
+ config.before(:example, :event_machine) do
# Ensure EventMachine shutdown hooks are deregistered for every test
EventMachine.instance_variable_set '@tails', []
end
end
config.add_formatter Ably::RSpec::PrivateApiFormatter
if ENV['RSPEC_RETRY']
puts 'Running tests using RSpec retry'
config.verbose_retry = true # show retry status in spec process
+ config.display_try_failure_messages = true # show exception that triggered the try
config.default_retry_count = 3
config.default_sleep_interval = 2
end
end