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

- old
+ new

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