-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deps: use correct database_cleaner adapter per database
- Loading branch information
1 parent
71055b9
commit 79b185d
Showing
3 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
spec/support/database_cleaner.rb → ...adapters/activerecord/database_cleaner.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
require 'database_cleaner/mongoid' | ||
|
||
RSpec.configure do |config| | ||
config.before :suite do | ||
DatabaseCleaner.strategy = :deletion | ||
DatabaseCleaner.clean_with :deletion | ||
end | ||
|
||
config.around :each do |example| | ||
DatabaseCleaner.cleaning do | ||
example.run | ||
end | ||
end | ||
end |