Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
6f4576b7
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6f4576b7
编写于
10月 24, 2012
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Spinach feature
上级
b7a9e41b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
28 addition
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
未找到文件。
app/views/team_members/import.html.haml
浏览文件 @
6f4576b7
...
...
@@ -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
)
.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"
features/project/team_management.feature
浏览文件 @
6f4576b7
...
...
@@ -32,3 +32,10 @@ Feature: Project Team management
And
I click link
"Remove from team"
Then
I visit project
"Shop"
team page
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
浏览文件 @
6f4576b7
...
...
@@ -86,4 +86,24 @@ class ProjectTeamManagement < Spinach::FeatureSteps
project
=
Project
.
find_by_name
(
"Shop"
)
project
.
add_access
(
user
,
:write
)
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
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录