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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
eb482bfa
Commit
eb482bfa
authored
Jul 15, 2018
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec to ensure project creation stores import URL and data
parent
1d03ff93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
spec/services/projects/create_service_spec.rb
spec/services/projects/create_service_spec.rb
+11
-0
No files found.
spec/services/projects/create_service_spec.rb
View file @
eb482bfa
...
...
@@ -114,6 +114,17 @@ describe Projects::CreateService, '#execute' do
end
end
context
'import data'
do
it
'stores import data and URL'
do
import_data
=
{
data:
{
'test'
=>
'some data'
}
}
project
=
create_project
(
user
,
{
name:
'test'
,
import_url:
'http://import-url'
,
import_data:
import_data
})
expect
(
project
.
import_data
).
to
be_persisted
expect
(
project
.
import_data
.
data
).
to
eq
(
import_data
[
:data
])
expect
(
project
.
import_url
).
to
eq
(
'http://import-url'
)
end
end
context
'builds_enabled global setting'
do
let
(
:project
)
{
create_project
(
user
,
opts
)
}
...
...
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