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
655b836b
Commit
655b836b
authored
Dec 26, 2012
by
Andrey Kumanyaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test reanimated
parent
c8bf5905
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
features/group/group.feature
features/group/group.feature
+1
-2
features/steps/group/group.rb
features/steps/group/group.rb
+3
-4
No files found.
features/group/group.feature
View file @
655b836b
...
@@ -20,7 +20,6 @@ Feature: Groups
...
@@ -20,7 +20,6 @@ Feature: Groups
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 page
When
I visit group people page
When
I visit group people page
When
I select user
"John"
from list with role
"Reporter"
And
I select user
"John"
from list with role
"Reporter"
Then
I should see user
"John"
in team list
Then
I should see user
"John"
in team list
features/steps/group/group.rb
View file @
655b836b
...
@@ -9,7 +9,7 @@ class Groups < Spinach::FeatureSteps
...
@@ -9,7 +9,7 @@ class Groups < Spinach::FeatureSteps
end
end
And
'I have group with projects'
do
And
'I have group with projects'
do
@group
=
create
(
:group
)
@group
=
create
(
:group
,
owner:
current_user
)
@project
=
create
(
:project
,
group:
@group
)
@project
=
create
(
:project
,
group:
@group
)
@event
=
create
(
:closed_issue_event
,
project:
@project
)
@event
=
create
(
:closed_issue_event
,
project:
@project
)
...
@@ -36,7 +36,7 @@ class Groups < Spinach::FeatureSteps
...
@@ -36,7 +36,7 @@ class Groups < Spinach::FeatureSteps
create
(
:user
,
name:
"John"
)
create
(
:user
,
name:
"John"
)
end
end
When
'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
user
.
name
,
:from
=>
"user_ids"
...
@@ -46,8 +46,7 @@ class Groups < Spinach::FeatureSteps
...
@@ -46,8 +46,7 @@ class Groups < Spinach::FeatureSteps
end
end
Then
'I should see user "John" in team list'
do
Then
'I should see user "John" in team list'
do
user
=
User
.
find_by_name
(
"John"
)
projects_with_access
=
find
(
".ui-box .well-list"
)
projects_with_access
=
find
(
".ui-box .well-list li"
)
projects_with_access
.
should
have_content
(
"John"
)
projects_with_access
.
should
have_content
(
"John"
)
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