summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorFederico Ravasio <ravasio.federico@gmail.com>2014-03-18 18:27:03 +0100
committerFederico Ravasio <ravasio.federico@gmail.com>2014-03-18 18:54:30 +0100
commite3fc01b3eaa13a51aef380dc21f1e7d259706227 (patch)
treef0d01f3ed7f2eff37d0ab81d268592101d1a2a52 /features
parentacaf297846907bff096dcbd71d6665ac6d4b8abc (diff)
downloadgitlab-ce-e3fc01b3eaa13a51aef380dc21f1e7d259706227.tar.gz
Added Slack service integration.
Diffstat (limited to 'features')
-rw-r--r--features/project/service.feature6
-rw-r--r--features/steps/project/services.rb18
2 files changed, 24 insertions, 0 deletions
diff --git a/features/project/service.feature b/features/project/service.feature
index 46b983e8f9a..a5af065c9e7 100644
--- a/features/project/service.feature
+++ b/features/project/service.feature
@@ -37,6 +37,12 @@ Feature: Project Services
And I fill Assembla settings
Then I should see Assembla service settings saved
+ Scenario: Activate Slack service
+ When I visit project "Shop" services page
+ And I click Slack service link
+ And I fill Slack settings
+ Then I should see Slack service settings saved
+
Scenario: Activate email on push service
When I visit project "Shop" services page
And I click email on push service link
diff --git a/features/steps/project/services.rb b/features/steps/project/services.rb
index 54b3f18e084..0594a08a5e7 100644
--- a/features/steps/project/services.rb
+++ b/features/steps/project/services.rb
@@ -100,4 +100,22 @@ class ProjectServices < Spinach::FeatureSteps
step 'I should see email on push service settings saved' do
find_field('Recipients').value.should == 'qa@company.name'
end
+
+ step 'I click Slack service link' do
+ click_link 'Slack'
+ end
+
+ step 'I fill Slack settings' do
+ check 'Active'
+ fill_in 'Subdomain', with: 'gitlab'
+ fill_in 'Room', with: '#gitlab'
+ fill_in 'Token', with: 'verySecret'
+ click_button 'Save'
+ end
+
+ step 'I should see Slack service settings saved' do
+ find_field('Subdomain').value.should == 'gitlab'
+ find_field('Room').value.should == '#gitlab'
+ find_field('Token').value.should == 'verySecret'
+ end
end