Skip to content

Commit

Permalink
Use transactional fixtures
Browse files Browse the repository at this point in the history
spec/features/campaign_requests_spec.rb:16 fails intermittently.
I suspect this is dependent on the order on which the test cases
are run. Transactional fixtures should fix this by making sure
each test case runs in isolation.
  • Loading branch information
Laurent Curau committed Feb 5, 2020
1 parent 03f422c commit 01ec661
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/rails_helper.rb
Expand Up @@ -23,6 +23,7 @@
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }

RSpec.configure do |config|
config.use_transactional_fixtures = true
# RSpec Rails can automatically mix in different behaviours to your tests
# based on their file location, for example enabling you to call `get` and
# `post` in specs under `spec/controllers`.
Expand Down

0 comments on commit 01ec661

Please sign in to comment.