Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
41d58747421c
Commit
72018278
authored
Aug 23, 2017
by
Grzegorz Bizon
Browse files
Invalidate cache before cleaning db in tests after context
parent
8e095e3eacab
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/support/db_cleaner.rb
View file @
41d58747
...
...
@@ -4,18 +4,18 @@
end
config
.
append_after
(
:context
)
do
DatabaseCleaner
.
clean_with
(
:truncation
)
DatabaseCleaner
.
clean_with
(
:truncation
,
cache_tables:
false
)
end
config
.
before
(
:each
)
do
DatabaseCleaner
.
strategy
=
:transaction
end
config
.
before
(
:each
,
js
:
true
)
do
config
.
before
(
:each
,
:
js
)
do
DatabaseCleaner
.
strategy
=
:truncation
end
config
.
before
(
:each
,
truncate
:
true
)
do
config
.
before
(
:each
,
:
truncate
)
do
DatabaseCleaner
.
strategy
=
:truncation
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment