spec/spec_helper.rb in curation_concerns-0.5.0 vs spec/spec_helper.rb in curation_concerns-0.6.0

- old
+ new

@@ -50,14 +50,14 @@ RSpec.configure do |config| config.use_transactional_fixtures = false config.fixture_path = File.expand_path('../fixtures', __FILE__) config.before :each do - if Capybara.current_driver == :rack_test - DatabaseCleaner.strategy = :transaction - else - DatabaseCleaner.strategy = :truncation - end + DatabaseCleaner.strategy = if Capybara.current_driver == :rack_test + :transaction + else + :truncation + end DatabaseCleaner.start end config.after do DatabaseCleaner.clean