Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
73f6218e
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,发现更多精彩内容 >>
提交
73f6218e
编写于
11月 23, 2016
作者:
S
Semyon Pupkov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move admin abuse report spinach test to rspec
https://gitlab.com/gitlab-org/gitlab-ce/issues/23036
上级
536ec509
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
29 deletion
+14
-29
changelogs/unreleased/move-admin-abuse-report-spinach-test-to-rspec.yml
...eleased/move-admin-abuse-report-spinach-test-to-rspec.yml
+4
-0
features/admin/abuse_report.feature
features/admin/abuse_report.feature
+0
-8
features/steps/admin/abuse_reports.rb
features/steps/admin/abuse_reports.rb
+0
-15
spec/features/admin/admin_abuse_reports_spec.rb
spec/features/admin/admin_abuse_reports_spec.rb
+10
-6
未找到文件。
changelogs/unreleased/move-admin-abuse-report-spinach-test-to-rspec.yml
0 → 100644
浏览文件 @
73f6218e
---
title
:
Move admin abuse report spinach test to rspec
merge_request
:
7691
author
:
Semyon Pupkov
features/admin/abuse_report.feature
已删除
100644 → 0
浏览文件 @
536ec509
Feature
:
Admin Abuse reports
Background
:
Given
I sign in as an admin
And
abuse reports exist
Scenario
:
Browse abuse reports
When
I visit abuse reports page
Then
I should see list of abuse reports
features/steps/admin/abuse_reports.rb
已删除
100644 → 0
浏览文件 @
536ec509
class
Spinach::Features::AdminAbuseReports
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedPaths
include
SharedAdmin
step
'I should see list of abuse reports'
do
page
.
should
have_content
(
"Abuse Reports"
)
page
.
should
have_content
AbuseReport
.
first
.
message
page
.
should
have_link
(
"Remove user"
)
end
step
'abuse reports exist'
do
create
(
:abuse_report
)
end
end
spec/features/admin/admin_abuse_reports_spec.rb
浏览文件 @
73f6218e
...
...
@@ -4,17 +4,21 @@ describe "Admin::AbuseReports", feature: true, js: true do
let
(
:user
)
{
create
(
:user
)
}
context
'as an admin'
do
before
do
login_as
:admin
end
describe
'if a user has been reported for abuse'
do
before
do
create
(
:abuse_report
,
user:
user
)
login_as
:admin
end
let!
(
:abuse_report
)
{
create
(
:abuse_report
,
user:
user
)
}
describe
'in the abuse report view'
do
it
"presents a link to the user's profile"
do
it
'presents information about abuse report'
do
visit
admin_abuse_reports_path
expect
(
page
).
to
have_link
user
.
name
,
href:
user_path
(
user
)
expect
(
page
).
to
have_content
(
'Abuse Reports'
)
expect
(
page
).
to
have_content
(
abuse_report
.
message
)
expect
(
page
).
to
have_link
(
user
.
name
,
href:
user_path
(
user
))
expect
(
page
).
to
have_link
(
'Remove user'
)
end
end
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录