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
Boxiang Sun
gitlab-ce
Commits
09a733ba
Commit
09a733ba
authored
Oct 04, 2017
by
micael.bergeron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the spec so it fails before applying the fix
parent
cf3de110
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
spec/lib/gitlab/import_export/project.light.json
spec/lib/gitlab/import_export/project.light.json
+12
-0
spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
+4
-4
No files found.
spec/lib/gitlab/import_export/project.light.json
View file @
09a733ba
...
...
@@ -63,6 +63,18 @@
"last_edited_at"
:
null
,
"last_edited_by_id"
:
null
,
"group_milestone_id"
:
null
,
"milestone"
:
{
"id"
:
1
,
"title"
:
"test milestone"
,
"project_id"
:
8
,
"description"
:
"test milestone"
,
"due_date"
:
null
,
"created_at"
:
"2016-06-14T15:02:04.415Z"
,
"updated_at"
:
"2016-06-14T15:02:04.415Z"
,
"state"
:
"active"
,
"iid"
:
1
,
"group_id"
:
null
},
"label_links"
:
[
{
"id"
:
11
,
...
...
spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
View file @
09a733ba
...
...
@@ -24,7 +24,7 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do
context
'JSON'
do
it
'restores models based on JSON'
do
expect
(
@restored_project_json
).
to
be
true
expect
(
@restored_project_json
).
to
be
_truthy
end
it
'restore correct project features'
do
...
...
@@ -203,7 +203,7 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do
restored_project_json
expect
(
shared
.
errors
.
first
).
to
be_nil
expect
(
shared
.
errors
).
to
be_empty
end
end
end
...
...
@@ -212,7 +212,7 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do
it
'restores project json correctly'
do
create
(
:ci_build
,
token:
'abcd'
)
expect
(
restored_project_json
).
to
be
true
expect
(
restored_project_json
).
to
be
_truthy
end
end
...
...
@@ -233,8 +233,8 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do
end
it
'correctly restores project'
do
expect
(
restored_project_json
).
to
be_truthy
expect
(
shared
.
errors
).
to
be_empty
expect
(
restored_project_json
).
to
be_truthy
end
it
'has labels'
do
...
...
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