Temp fix for rspec so the specs are run again
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
This commit is contained in:
parent
8ec42ff85c
commit
0faf80aa9d
1 changed files with 10 additions and 13 deletions
|
@ -1,21 +1,18 @@
|
|||
RSpec.configure do |config|
|
||||
config.around(:each) do
|
||||
DatabaseCleaner.clean_with(:truncation)
|
||||
end
|
||||
|
||||
config.around(:each) do
|
||||
config.around(:each) do |example|
|
||||
DatabaseCleaner.strategy = :transaction
|
||||
DatabaseCleaner.clean_with(:truncation)
|
||||
DatabaseCleaner.cleaning do
|
||||
example.run
|
||||
end
|
||||
end
|
||||
|
||||
config.around(:each, js: true) do
|
||||
config.around(:each, js: true) do |example|
|
||||
DatabaseCleaner.strategy = :truncation
|
||||
end
|
||||
|
||||
config.before(:each) do
|
||||
DatabaseCleaner.start
|
||||
end
|
||||
|
||||
config.after(:each) do
|
||||
DatabaseCleaner.clean
|
||||
DatabaseCleaner.clean_with(:truncation)
|
||||
DatabaseCleaner.cleaning do
|
||||
example.run
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue