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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
7bfd38ea
Commit
7bfd38ea
authored
Jan 09, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spinach test: project services
parent
9b22f41e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
features/project/service.feature
features/project/service.feature
+14
-0
features/steps/project/project_services.rb
features/steps/project/project_services.rb
+30
-0
No files found.
features/project/service.feature
0 → 100644
View file @
7bfd38ea
Feature
:
Project Services
Background
:
Given
I sign in as a user
And
I own project
"Shop"
Scenario
:
I
should see project services
When
I visit project
"Shop"
services page
Then
I should see list of available services
Scenario
:
Activate gitlab-ci service
When
I visit project
"Shop"
services page
And
I click gitlab-ci service link
And
I fill gitlab-ci settings
Then
I should see service settings saved
features/steps/project/project_services.rb
0 → 100644
View file @
7bfd38ea
class
ProjectServices
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedProject
include
SharedPaths
When
'I visit project "Shop" services page'
do
visit
project_services_path
(
@project
)
end
Then
'I should see list of available services'
do
page
.
should
have_content
'Services'
page
.
should
have_content
'Jenkins'
page
.
should
have_content
'GitLab CI'
end
And
'I click gitlab-ci service link'
do
click_link
'GitLab CI'
end
And
'I fill gitlab-ci settings'
do
check
'Active'
fill_in
'Project URL'
,
with:
'http://ci.gitlab.org/projects/3'
fill_in
'CI Project token'
,
with:
'verySecret'
click_button
'Save'
end
Then
'I should see service settings saved'
do
find_field
(
'Project URL'
).
value
.
should
==
'http://ci.gitlab.org/projects/3'
end
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