docbrown/spec/support/initializers/rspec_retry.rb
Mac Siri 32d15f2820 Update test suite configuration (#702)
* Update DatabaseCleaner

* Only retry in CI

* Update rubocop precommit hook

* Update spec

* Restructure spec configs WIP

* Restructure spec configs WIP

* Create OmniauthMacros

* Fix broken spec

* Update spec
2018-09-24 14:40:22 -04:00

10 lines
253 B
Ruby

require "rspec/retry"
RSpec.configure do |config|
config.verbose_retry = true
config.display_try_failure_messages = true
config.around :each, :js do |ex|
# retry only on features in CI
ex.run_with_retry retry: ENV["CI"] ? 3 : 1
end
end