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
Boxiang Sun
gitlab-ce
Commits
6f4576b7
Commit
6f4576b7
authored
Oct 24, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spinach feature
parent
b7a9e41b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
app/views/team_members/import.html.haml
app/views/team_members/import.html.haml
+1
-1
features/project/team_management.feature
features/project/team_management.feature
+7
-0
features/steps/project/project_team_management.rb
features/steps/project/project_team_management.rb
+20
-0
No files found.
app/views/team_members/import.html.haml
View file @
6f4576b7
...
@@ -12,6 +12,6 @@
...
@@ -12,6 +12,6 @@
.input
=
select_tag
(
:source_project_id
,
options_from_collection_for_select
(
current_user
.
projects
,
:id
,
:name
),
prompt:
"Select project"
,
class:
"chosen xxlarge"
,
required:
true
)
.input
=
select_tag
(
:source_project_id
,
options_from_collection_for_select
(
current_user
.
projects
,
:id
,
:name
),
prompt:
"Select project"
,
class:
"chosen xxlarge"
,
required:
true
)
.actions
.actions
=
submit_tag
'
Save
'
,
class:
"btn save-btn"
=
submit_tag
'
Import
'
,
class:
"btn save-btn"
=
link_to
"Cancel"
,
project_team_index_path
(
@project
),
class:
"btn cancel-btn"
=
link_to
"Cancel"
,
project_team_index_path
(
@project
),
class:
"btn cancel-btn"
features/project/team_management.feature
View file @
6f4576b7
...
@@ -32,3 +32,10 @@ Feature: Project Team management
...
@@ -32,3 +32,10 @@ Feature: Project Team management
And
I click link
"Remove from team"
And
I click link
"Remove from team"
Then
I visit project
"Shop"
team page
Then
I visit project
"Shop"
team page
And
I should not see
"Sam"
in team list
And
I should not see
"Sam"
in team list
Scenario
:
Import team from another project
Given
I own project
"Website"
And
"Mike"
is
"Website"
reporter
And
I click link
"Import team from another project"
When
I submit
"Website"
project for import team
Then
I should see
"Mike"
in team list as
"Reporter"
features/steps/project/project_team_management.rb
View file @
6f4576b7
...
@@ -86,4 +86,24 @@ class ProjectTeamManagement < Spinach::FeatureSteps
...
@@ -86,4 +86,24 @@ class ProjectTeamManagement < Spinach::FeatureSteps
project
=
Project
.
find_by_name
(
"Shop"
)
project
=
Project
.
find_by_name
(
"Shop"
)
project
.
add_access
(
user
,
:write
)
project
.
add_access
(
user
,
:write
)
end
end
Given
'I own project "Website"'
do
@project
=
Factory
:project
,
:name
=>
"Website"
@project
.
add_access
(
@user
,
:admin
)
end
And
'"Mike" is "Website" reporter'
do
user
=
User
.
find_by_name
(
"Mike"
)
project
=
Project
.
find_by_name
(
"Website"
)
project
.
add_access
(
user
,
:read
)
end
And
'I click link "Import team from another project"'
do
click_link
"Import team from another project"
end
When
'I submit "Website" project for import team'
do
select
'Website'
,
from:
'source_project_id'
click_button
'Import'
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