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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b5342de5
Commit
b5342de5
authored
Aug 22, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add admin notification unsubscribe feature
parent
93e2e302
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
features/steps/user.rb
features/steps/user.rb
+16
-0
features/user.feature
features/user.feature
+7
-0
No files found.
features/steps/user.rb
View file @
b5342de5
...
...
@@ -7,4 +7,20 @@ class Spinach::Features::User < Spinach::FeatureSteps
step
'I should see user "John Doe" page'
do
expect
(
page
.
title
).
to
match
(
/^\s*John Doe/
)
end
step
'I visit unsubscribe link'
do
visit
"/unsubscribes/joh@doe.org"
end
step
'I should see unsubscribe text and button'
do
page
.
should
have_content
"Unsubscribe from Admin notifications Yes, I want to unsubscribe joh@doe.org from any further admin emails."
end
step
'I press the unsubscribe button'
do
click_button
(
"Unsubscribe"
)
end
step
'I should be unsubscribed'
do
current_path
.
should
==
root_path
end
end
features/user.feature
View file @
b5342de5
...
...
@@ -67,3 +67,10 @@ Feature: User
And
I should see project
"Enterprise"
And
I should not see project
"Internal"
And
I should not see project
"Community"
Scenario
:
I
unsubscribe from admin notifications
Given
I sign in as
"John Doe"
When
I visit unsubscribe link
Then
I should see unsubscribe text and button
And
I press the unsubscribe button
Then
I should be unsubscribed
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