Added spinach Tests for pivotaltracker service

This commit is contained in:
Johannes Becker 2013-09-25 16:49:39 +02:00
parent 435a5ff8a1
commit 64e012a378
2 changed files with 20 additions and 0 deletions

View file

@ -18,3 +18,9 @@ Feature: Project Services
And I click hipchat service link
And I fill hipchat settings
Then I should see hipchat service settings saved
Scenario: Activate pivotaltracker service
When I visit project "Shop" services page
And I click pivotaltracker service link
And I fill pivotaltracker settings
Then I should see pivotaltracker service settings saved

View file

@ -44,4 +44,18 @@ class ProjectServices < Spinach::FeatureSteps
find_field('Room').value.should == 'gitlab'
end
And 'I click pivotaltracker service link' do
click_link 'PivotalTracker'
end
And 'I fill pivotaltracker settings' do
check 'Active'
fill_in 'Token', with: 'verySecret'
click_button 'Save'
end
Then 'I should see pivotaltracker service settings saved' do
find_field('Token').value.should == 'verySecret'
end
end