BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
bce00bad
Commit
bce00bad
authored
Feb 17, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Truncate the DB in after(:all) test for Gitlab::ImportExport::ProjectTreeRestorer
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
097924cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
project_tree_restorer_spec.rb
spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
+1
-5
db_cleaner.rb
spec/support/db_cleaner.rb
+4
-0
No files found.
spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
View file @
bce00bad
...
...
@@ -3,7 +3,7 @@ include ImportExport::CommonUtil
describe
Gitlab
::
ImportExport
::
ProjectTreeRestorer
,
services:
true
do
describe
'restore project tree'
do
before
(
:
all
)
do
before
(
:
context
)
do
@user
=
create
(
:user
)
RSpec
::
Mocks
.
with_temporary_scope
do
...
...
@@ -15,10 +15,6 @@ describe Gitlab::ImportExport::ProjectTreeRestorer, services: true do
end
end
after
(
:all
)
do
@user
.
destroy!
end
context
'JSON'
do
it
'restores models based on JSON'
do
expect
(
@restored_project_json
).
to
be
true
...
...
spec/support/db_cleaner.rb
View file @
bce00bad
...
...
@@ -3,6 +3,10 @@ RSpec.configure do |config|
DatabaseCleaner
.
clean_with
(
:truncation
)
end
config
.
append_after
(
:context
)
do
DatabaseCleaner
.
clean_with
(
:truncation
)
end
config
.
before
(
:each
)
do
DatabaseCleaner
.
strategy
=
:transaction
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