Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
80877bf6e2f8
Commit
49495fe6
authored
Aug 28, 2017
by
James Lopez
Browse files
fix spec
parent
e59ca61c14bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
View file @
80877bf6
...
...
@@ -86,6 +86,10 @@
expect
(
event
).
not_to
be_nil
end
it
'has the action'
do
expect
(
event
.
action
).
not_to
be_nil
end
it
'event belongs to note, belongs to merge request, belongs to a project'
do
expect
(
event
.
note
.
noteable
.
project
).
not_to
be_nil
end
...
...
spec/support/import_export/export_file_helper.rb
View file @
80877bf6
...
...
@@ -35,7 +35,8 @@ def setup_project
project:
project
,
commit_id:
ci_pipeline
.
sha
)
create
(
:event
,
:created
,
target:
milestone
,
project:
project
,
author:
user
)
create
(
:event
,
:created
,
target:
milestone
,
project:
project
,
author:
user
,
action:
5
)
create
(
:push_event_payload
,
event:
event
)
create
(
:project_member
,
:master
,
user:
user
,
project:
project
)
create
(
:ci_variable
,
project:
project
)
create
(
:ci_trigger
,
project:
project
)
...
...
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