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
68f8ffb5
Commit
68f8ffb5
authored
Dec 17, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spinach tests for email on push service
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
074efd8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
18 deletions
+37
-18
features/project/service.feature
features/project/service.feature
+7
-1
features/steps/project/project_services.rb
features/steps/project/project_services.rb
+30
-17
No files found.
features/project/service.feature
View file @
68f8ffb5
...
@@ -35,4 +35,10 @@ Feature: Project Services
...
@@ -35,4 +35,10 @@ Feature: Project Services
When
I visit project
"Shop"
services page
When
I visit project
"Shop"
services page
And
I click Assembla service link
And
I click Assembla service link
And
I fill Assembla settings
And
I fill Assembla settings
Then
I should see Assembla service settings saved
Then
I should see Assembla service settings saved
\ No newline at end of file
Scenario
:
Activate email on push service
When
I visit project
"Shop"
services page
And
I click email on push service link
And
I fill email on push settings
Then
I should see email on push service settings saved
features/steps/project/project_services.rb
View file @
68f8ffb5
...
@@ -3,11 +3,11 @@ class ProjectServices < Spinach::FeatureSteps
...
@@ -3,11 +3,11 @@ class ProjectServices < Spinach::FeatureSteps
include
SharedProject
include
SharedProject
include
SharedPaths
include
SharedPaths
When
'I visit project "Shop" services page'
do
step
'I visit project "Shop" services page'
do
visit
project_services_path
(
@project
)
visit
project_services_path
(
@project
)
end
end
Then
'I should see list of available services'
do
step
'I should see list of available services'
do
page
.
should
have_content
'Services'
page
.
should
have_content
'Services'
page
.
should
have_content
'Campfire'
page
.
should
have_content
'Campfire'
page
.
should
have_content
'Hipchat'
page
.
should
have_content
'Hipchat'
...
@@ -15,76 +15,89 @@ class ProjectServices < Spinach::FeatureSteps
...
@@ -15,76 +15,89 @@ class ProjectServices < Spinach::FeatureSteps
page
.
should
have_content
'Assembla'
page
.
should
have_content
'Assembla'
end
end
And
'I click gitlab-ci service link'
do
step
'I click gitlab-ci service link'
do
click_link
'GitLab CI'
click_link
'GitLab CI'
end
end
And
'I fill gitlab-ci settings'
do
step
'I fill gitlab-ci settings'
do
check
'Active'
check
'Active'
fill_in
'Project url'
,
with:
'http://ci.gitlab.org/projects/3'
fill_in
'Project url'
,
with:
'http://ci.gitlab.org/projects/3'
fill_in
'Token'
,
with:
'verySecret'
fill_in
'Token'
,
with:
'verySecret'
click_button
'Save'
click_button
'Save'
end
end
Then
'I should see service settings saved'
do
step
'I should see service settings saved'
do
find_field
(
'Project url'
).
value
.
should
==
'http://ci.gitlab.org/projects/3'
find_field
(
'Project url'
).
value
.
should
==
'http://ci.gitlab.org/projects/3'
end
end
And
'I click hipchat service link'
do
step
'I click hipchat service link'
do
click_link
'Hipchat'
click_link
'Hipchat'
end
end
And
'I fill hipchat settings'
do
step
'I fill hipchat settings'
do
check
'Active'
check
'Active'
fill_in
'Room'
,
with:
'gitlab'
fill_in
'Room'
,
with:
'gitlab'
fill_in
'Token'
,
with:
'verySecret'
fill_in
'Token'
,
with:
'verySecret'
click_button
'Save'
click_button
'Save'
end
end
Then
'I should see hipchat service settings saved'
do
step
'I should see hipchat service settings saved'
do
find_field
(
'Room'
).
value
.
should
==
'gitlab'
find_field
(
'Room'
).
value
.
should
==
'gitlab'
end
end
And
'I click pivotaltracker service link'
do
step
'I click pivotaltracker service link'
do
click_link
'PivotalTracker'
click_link
'PivotalTracker'
end
end
And
'I fill pivotaltracker settings'
do
step
'I fill pivotaltracker settings'
do
check
'Active'
check
'Active'
fill_in
'Token'
,
with:
'verySecret'
fill_in
'Token'
,
with:
'verySecret'
click_button
'Save'
click_button
'Save'
end
end
Then
'I should see pivotaltracker service settings saved'
do
step
'I should see pivotaltracker service settings saved'
do
find_field
(
'Token'
).
value
.
should
==
'verySecret'
find_field
(
'Token'
).
value
.
should
==
'verySecret'
end
end
And
'I click Flowdock service link'
do
step
'I click Flowdock service link'
do
click_link
'Flowdock'
click_link
'Flowdock'
end
end
And
'I fill Flowdock settings'
do
step
'I fill Flowdock settings'
do
check
'Active'
check
'Active'
fill_in
'Token'
,
with:
'verySecret'
fill_in
'Token'
,
with:
'verySecret'
click_button
'Save'
click_button
'Save'
end
end
Then
'I should see Flowdock service settings saved'
do
step
'I should see Flowdock service settings saved'
do
find_field
(
'Token'
).
value
.
should
==
'verySecret'
find_field
(
'Token'
).
value
.
should
==
'verySecret'
end
end
And
'I click Assembla service link'
do
step
'I click Assembla service link'
do
click_link
'Assembla'
click_link
'Assembla'
end
end
And
'I fill Assembla settings'
do
step
'I fill Assembla settings'
do
check
'Active'
check
'Active'
fill_in
'Token'
,
with:
'verySecret'
fill_in
'Token'
,
with:
'verySecret'
click_button
'Save'
click_button
'Save'
end
end
Then
'I should see Assembla service settings saved'
do
step
'I should see Assembla service settings saved'
do
find_field
(
'Token'
).
value
.
should
==
'verySecret'
find_field
(
'Token'
).
value
.
should
==
'verySecret'
end
end
step
'I click email on push service link'
do
click_link
'Emails on push'
end
step
'I fill email on push settings'
do
fill_in
'Recipients'
,
with:
'qa@company.name'
click_button
'Save'
end
step
'I should see email on push service settings saved'
do
find_field
(
'Recipients'
).
value
.
should
==
'qa@company.name'
end
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