Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0faf80aa
Commit
0faf80aa
authored
Jun 06, 2014
by
Jeroen van Baarsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temp fix for rspec so the specs are run again
Signed-off-by:
Jeroen van Baarsen
<
jeroenvanbaarsen@gmail.com
>
parent
8ec42ff8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
spec/support/db_cleaner.rb
spec/support/db_cleaner.rb
+10
-13
No files found.
spec/support/db_cleaner.rb
View file @
0faf80aa
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
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