forked from zammad/zammad
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched over to DB reset strategy in tests and removed DatabaseClean…
…er because it can't guarantee a clean DB state for all test scenarios.
- Loading branch information
1 parent
7d9c087
commit b538b05
Showing
5 changed files
with
24 additions
and
14 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
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
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
RSpec.configure do |config| | ||
|
||
config.around(:each, db_strategy: :truncation) do |example| | ||
config.around(:each, db_strategy: :reset) do |example| | ||
self.use_transactional_tests = false | ||
example.run | ||
Rake::Task['zammad:db:reset'].execute | ||
Rake::Task['zammad:db:reset'].reenable | ||
Rake::Task['zammad:db:reset'].invoke | ||
end | ||
end |