gitlab-org--gitlab-foss/features/steps/project/project_services.rb

31 lines
810 B
Ruby
Raw Normal View History

2013-01-09 06:14:05 +00:00
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'
2013-05-22 15:10:51 +00:00
page.should have_content 'Campfire'
2013-01-09 06:14:05 +00:00
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'
2013-05-22 15:10:51 +00:00
fill_in 'Project url', with: 'http://ci.gitlab.org/projects/3'
fill_in 'Token', with: 'verySecret'
2013-01-09 06:14:05 +00:00
click_button 'Save'
end
Then 'I should see service settings saved' do
2013-05-22 15:10:51 +00:00
find_field('Project url').value.should == 'http://ci.gitlab.org/projects/3'
2013-01-09 06:14:05 +00:00
end
end