Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
7a9fc480
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,体验更适合开发者的 AI 搜索 >>
提交
7a9fc480
编写于
12月 15, 2011
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
just test fix commit
上级
d9cfb798
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
12 addition
and
13 deletion
+12
-13
spec/factories.rb
spec/factories.rb
+1
-0
spec/requests/dashboard_issues_spec.rb
spec/requests/dashboard_issues_spec.rb
+2
-3
spec/requests/dashboard_merge_requests_spec.rb
spec/requests/dashboard_merge_requests_spec.rb
+4
-5
spec/requests/projects_spec.rb
spec/requests/projects_spec.rb
+2
-2
spec/requests/snippets_spec.rb
spec/requests/snippets_spec.rb
+3
-3
未找到文件。
spec/factories.rb
浏览文件 @
7a9fc480
...
...
@@ -38,6 +38,7 @@ Factory.add(:merge_request, MergeRequest) do |obj|
obj
.
title
=
Faker
::
Lorem
.
sentence
obj
.
source_branch
=
"master"
obj
.
target_branch
=
"master"
obj
.
closed
=
false
end
Factory
.
add
(
:snippet
,
Snippet
)
do
|
obj
|
...
...
spec/requests/dashboard_issues_spec.rb
浏览文件 @
7a9fc480
require
'spec_helper'
describe
"User Issues Dashboard"
,
:js
=>
true
do
describe
"User Issues Dashboard"
do
describe
"GET /issues"
do
before
do
...
...
@@ -27,8 +27,7 @@ describe "User Issues Dashboard", :js => true do
:assignee
=>
@user
,
:project
=>
@project2
visit
dashboard_path
click_link
"issues_slide"
visit
dashboard_issues_path
end
subject
{
page
}
...
...
spec/requests/dashboard_merge_requests_spec.rb
浏览文件 @
7a9fc480
require
'spec_helper'
describe
"User MergeRequests"
,
:js
=>
true
do
describe
"User MergeRequests"
do
describe
"GET /issues"
do
before
do
...
...
@@ -27,19 +27,18 @@ describe "User MergeRequests", :js => true do
:assignee
=>
@user
,
:project
=>
@project2
visit
dashboard_path
click_link
"merge_requests_slide"
visit
dashboard_merge_requests_path
end
subject
{
page
}
it
{
should
have_content
(
@merge_request1
.
title
)
}
it
{
should
have_content
(
@merge_request1
.
title
[
0
..
10
]
)
}
it
{
should
have_content
(
@merge_request1
.
project
.
name
)
}
it
{
should
have_content
(
@merge_request1
.
target_branch
)
}
it
{
should
have_content
(
@merge_request1
.
source_branch
)
}
it
{
should
have_content
(
@merge_request1
.
assignee
.
name
)
}
it
{
should
have_content
(
@merge_request2
.
title
)
}
it
{
should
have_content
(
@merge_request2
.
title
[
0
..
10
]
)
}
it
{
should
have_content
(
@merge_request2
.
project
.
name
)
}
it
{
should
have_content
(
@merge_request2
.
target_branch
)
}
it
{
should
have_content
(
@merge_request2
.
source_branch
)
}
...
...
spec/requests/projects_spec.rb
浏览文件 @
7a9fc480
...
...
@@ -46,7 +46,7 @@ describe "Projects" do
fill_in
'Name'
,
:with
=>
'NewProject'
fill_in
'Code'
,
:with
=>
'NPR'
fill_in
'Path'
,
:with
=>
'newproject'
expect
{
click_button
"
Create Project
"
}.
to
change
{
Project
.
count
}.
by
(
1
)
expect
{
click_button
"
Save
"
}.
to
change
{
Project
.
count
}.
by
(
1
)
@project
=
Project
.
last
end
...
...
@@ -135,7 +135,7 @@ describe "Projects" do
fill_in
'Name'
,
:with
=>
'Awesome'
fill_in
'Path'
,
:with
=>
'legit'
fill_in
'Description'
,
:with
=>
'Awesome project'
click_button
"
Update Project
"
click_button
"
Save
"
@project
=
@project
.
reload
end
...
...
spec/requests/snippets_spec.rb
浏览文件 @
7a9fc480
...
...
@@ -28,7 +28,7 @@ describe "Snippets" do
# admin access to remove snippet
@user
.
users_projects
.
destroy_all
project
.
add_access
(
@user
,
:read
,
:write
,
:admin
)
visit
project_snippets_path
(
projec
t
)
visit
edit_project_snippet_path
(
project
,
@snippe
t
)
end
it
"should remove entry"
do
...
...
@@ -72,8 +72,8 @@ describe "Snippets" do
@snippet
=
Factory
:snippet
,
:author
=>
@user
,
:project
=>
project
visit
project_snippet
s_path
(
projec
t
)
click_link
"Edit"
visit
project_snippet
_path
(
project
,
@snippe
t
)
click_link
"Edit
Snippet
"
end
it
"should open edit page"
do
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录