spec/support/database_cleaner.rb in spree-faq-2.1.0 vs spec/support/database_cleaner.rb in spree-faq-2.1.1

- old
+ new

@@ -6,13 +6,13 @@ DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with :truncation end config.before do - DatabaseCleaner.strategy = example.metadata[:js] ? :truncation : :transaction + DatabaseCleaner.strategy = RSpec.current_example.metadata[:js] ? :truncation : :transaction DatabaseCleaner.start end config.after do DatabaseCleaner.clean end -end \ No newline at end of file +end