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
iv
gitlab-ce
Commits
52f312a8
Commit
52f312a8
authored
Jun 11, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix group:people tests after prev commit
parent
c38a6fe1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
features/group/group.feature
features/group/group.feature
+1
-0
features/steps/group/group.rb
features/steps/group/group.rb
+2
-1
No files found.
features/group/group.feature
View file @
52f312a8
...
@@ -19,6 +19,7 @@ Feature: Groups
...
@@ -19,6 +19,7 @@ Feature: Groups
When
I visit group merge requests page
When
I visit group merge requests page
Then
I should see merge requests from this group assigned to me
Then
I should see merge requests from this group assigned to me
@javascript
Scenario
:
I
should add user to projects in Group
Scenario
:
I
should add user to projects in Group
Given
I have new user
"John"
Given
I have new user
"John"
When
I visit group people page
When
I visit group people page
...
...
features/steps/group/group.rb
View file @
52f312a8
class
Groups
<
Spinach
::
FeatureSteps
class
Groups
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedAuthentication
include
SharedPaths
include
SharedPaths
include
Select2Helper
Then
'I should see projects list'
do
Then
'I should see projects list'
do
current_user
.
authorized_projects
.
each
do
|
project
|
current_user
.
authorized_projects
.
each
do
|
project
|
...
@@ -39,7 +40,7 @@ class Groups < Spinach::FeatureSteps
...
@@ -39,7 +40,7 @@ class Groups < Spinach::FeatureSteps
And
'I select user "John" from list with role "Reporter"'
do
And
'I select user "John" from list with role "Reporter"'
do
user
=
User
.
find_by_name
(
"John"
)
user
=
User
.
find_by_name
(
"John"
)
within
"#new_team_member"
do
within
"#new_team_member"
do
select
user
.
name
,
from:
"user_ids"
select
2
(
user
.
id
,
from:
"#user_ids"
,
multiple:
true
)
select
"Reporter"
,
from:
"project_access"
select
"Reporter"
,
from:
"project_access"
end
end
click_button
"Add"
click_button
"Add"
...
...
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