spec/spec_helper.rb in reactor-0.8.2 vs spec/spec_helper.rb in reactor-0.8.3
- old
+ new
@@ -25,20 +25,22 @@
RSpec.configure do |config|
# some (optional) config here
- config.treat_symbols_as_metadata_keys_with_true_values = true
-
# Runs Sidekiq jobs inline by default unless the RSpec metadata :sidekiq is specified,
# in which case it will use the real Redis-backed Sidekiq queue
config.before(:each, :sidekiq) do
Sidekiq.redis{|r| r.flushall }
Sidekiq::Testing.disable!
end
-
config.after(:each, :sidekiq) do
Sidekiq::Testing.inline!
end
+ # Run specs in random order to surface order dependencies. If you find an
+ # order dependency and want to debug it, you can fix the order by providing
+ # the seed, which is printed after each run.
+ # --seed 1234
+ config.order = "random"
end
\ No newline at end of file