Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
20a4742e
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,发现更多精彩内容 >>
提交
20a4742e
编写于
1月 25, 2013
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixing team tests
上级
00e4a479
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
24 deletion
+9
-24
app/assets/stylesheets/sections/projects.scss
app/assets/stylesheets/sections/projects.scss
+0
-2
app/views/dashboard/_teams.html.haml
app/views/dashboard/_teams.html.haml
+1
-1
features/dashboard/dashboard.feature
features/dashboard/dashboard.feature
+0
-6
features/steps/userteams/userteams.rb
features/steps/userteams/userteams.rb
+8
-8
features/teams/team.feature
features/teams/team.feature
+0
-7
未找到文件。
app/assets/stylesheets/sections/projects.scss
浏览文件 @
20a4742e
...
...
@@ -6,8 +6,6 @@
.side
{
@extend
.right
;
.groups_box
,
.teams_box
,
.projects_box
{
>
.title
{
padding
:
2px
15px
;
...
...
app/views/dashboard/_teams.html.haml
浏览文件 @
20a4742e
.ui-box
.ui-box
.teams-box
%h5
.title
Teams
%small
...
...
features/dashboard/dashboard.feature
浏览文件 @
20a4742e
...
...
@@ -16,12 +16,6 @@ Feature: Dashboard
And
I visit dashboard page
Then
I should see groups list
Scenario
:
I
should see correct projects count
Given
I have group with projects
And
group has a projects that does not belongs to me
When
I visit dashboard page
Then
I should see 1 project at group list
Scenario
:
I
should see last push widget
Then
I should see last push widget
And
I click
"Create Merge Request"
link
...
...
features/steps/userteams/userteams.rb
浏览文件 @
20a4742e
...
...
@@ -8,16 +8,16 @@ class Userteams < Spinach::FeatureSteps
end
Then
'I should see dashboard page without teams info block'
do
page
.
has_no_css?
(
".teams
_
box"
).
must_equal
true
page
.
has_no_css?
(
".teams
-
box"
).
must_equal
true
end
When
'I have teams with my membership'
do
team
=
create
:user_team
team
=
create
:user_team
,
owner:
current_user
team
.
add_member
(
current_user
,
UserTeam
.
access_roles
[
"Master"
],
true
)
end
Then
'I should see dashboard page with teams information block'
do
page
.
should
have_css
(
".teams
_
box"
)
page
.
should
have_css
(
".teams
-
box"
)
end
When
'exist user teams'
do
...
...
@@ -53,7 +53,7 @@ class Userteams < Spinach::FeatureSteps
end
When
'I have teams with projects and members'
do
team
=
create
:user_team
team
=
create
:user_team
,
owner:
current_user
@project
=
create
:project
team
.
add_member
(
current_user
,
UserTeam
.
access_roles
[
"Master"
],
true
)
team
.
assign_to_project
(
@project
,
UserTeam
.
access_roles
[
"Master"
])
...
...
@@ -92,7 +92,7 @@ class Userteams < Spinach::FeatureSteps
end
Given
'I have team with projects and members'
do
team
=
create
:user_team
team
=
create
:user_team
,
owner:
current_user
project
=
create
:project
user
=
create
:user
team
.
add_member
(
current_user
,
UserTeam
.
access_roles
[
"Master"
],
true
)
...
...
@@ -190,11 +190,11 @@ class Userteams < Spinach::FeatureSteps
end
And
'I have my own project without teams'
do
@project
=
create
:project
,
creator:
current_user
@project
=
create
:project
,
namespace:
current_user
.
namespace
end
And
'I visit my team page'
do
team
=
UserTeam
.
last
team
=
UserTeam
.
where
(
owner_id:
current_user
.
id
).
last
visit
team_path
(
team
)
end
...
...
@@ -213,7 +213,7 @@ class Userteams < Spinach::FeatureSteps
When
'I submit form with selected project and max access'
do
within
"#assign_projects"
do
select
@project
.
name
,
:from
=>
"project_ids"
select
@project
.
name
_with_namespace
,
:from
=>
"project_ids"
select
"Reporter"
,
:from
=>
"greatest_project_access"
end
click_button
"Add"
...
...
features/teams/team.feature
浏览文件 @
20a4742e
...
...
@@ -14,13 +14,6 @@ Feature: UserTeams
And
I visit dashboard page
Then
I should see dashboard page with teams information block
Scenario
:
I
should see all teams list
When
exist user teams
And
I visit dashboard page
And
I click on
"All teams"
link
Then
I should see
"All teams"
page
And
I should see exist teams in teams list
Scenario
:
I
should can create new team
When
I have teams with my membership
And
I visit dashboard page
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录