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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
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
|
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
.
strategy
=
:transaction
DatabaseCleaner
.
clean_with
(
:truncation
)
DatabaseCleaner
.
cleaning
do
example
.
run
end
end
end
config
.
around
(
:each
,
js:
true
)
do
config
.
around
(
:each
,
js:
true
)
do
|
example
|
DatabaseCleaner
.
strategy
=
:truncation
DatabaseCleaner
.
strategy
=
:truncation
end
DatabaseCleaner
.
clean_with
(
:truncation
)
DatabaseCleaner
.
cleaning
do
config
.
before
(
:each
)
do
example
.
run
DatabaseCleaner
.
start
end
end
config
.
after
(
:each
)
do
DatabaseCleaner
.
clean
end
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