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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
85de253e
Commit
85de253e
authored
May 29, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests for group leave feature
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
cef746dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
features/dashboard/group.feature
features/dashboard/group.feature
+2
-1
features/steps/dashboard/group.rb
features/steps/dashboard/group.rb
+4
-0
No files found.
features/dashboard/group.feature
View file @
85de253e
...
...
@@ -24,7 +24,8 @@ Feature: Dashboard Group
When
I visit dashboard groups page
Then
I should see group
"Owned"
in group list
Then
I should see group
"Guest"
in group list
Then
I should not see the
"Leave"
button for group
"Owned"
When
I click on the
"Leave"
button for group
"Owned"
Then
I should see the
"Can not leave message"
@javascript
Scenario
:
Guest should be able to leave from group
...
...
features/steps/dashboard/group.rb
View file @
85de253e
...
...
@@ -60,4 +60,8 @@ class Spinach::Features::DashboardGroup < Spinach::FeatureSteps
page
.
should
have_content
"Samurai"
page
.
should
have_content
"Tokugawa Shogunate"
end
step
'I should see the "Can not leave message"'
do
page
.
should
have_content
"You can not leave Owned group because you're the last owner"
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