remove unused truncation database cleaner strategy
This commit is contained in:
parent
33eec7aa25
commit
afd82a4901
1 changed files with 0 additions and 4 deletions
|
@ -21,10 +21,6 @@ Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
||||||
|
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
# We use capybara with webkit, and need database_cleaner
|
# We use capybara with webkit, and need database_cleaner
|
||||||
config.before(:suite) do
|
|
||||||
DatabaseCleaner.clean_with(:truncation)
|
|
||||||
end
|
|
||||||
|
|
||||||
config.before(:each) do
|
config.before(:each) do
|
||||||
DatabaseCleaner.strategy = (RSpec.current_example.metadata[:js] ? :truncation : :transaction)
|
DatabaseCleaner.strategy = (RSpec.current_example.metadata[:js] ? :truncation : :transaction)
|
||||||
DatabaseCleaner.start
|
DatabaseCleaner.start
|
||||||
|
|
Loading…
Reference in a new issue