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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
+1
-5
spec/support/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