forked from gitlabhq/gitlabhq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b22f41
commit 7bfd38e
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
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 |