Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMark Tareshawty <tarebyte@github.com>2018-02-24 05:51:46 +0300
committerMark Tareshawty <tarebyte@github.com>2018-02-24 05:52:46 +0300
commit42a0c3310f1e16e03b8a46bb2ec79429d179e754 (patch)
tree4c9f7bbe89b7d03cebe97f176bca0bdd191938de /spec
parentda3537c05461d9ea9e332079dbb7f8a5d5745f4a (diff)
Add example.run inside of DatabaseCleaner.cleaning block
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index cd337aff..56ea3aa2 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -20,7 +20,9 @@ RSpec.configure do |config|
end
config.around(:each) do |example|
- DatabaseCleaner.clean
+ DatabaseCleaner.cleaning do
+ example.run
+ end
end
# ## Mock Framework