BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
2e2a2a36
Commit
2e2a2a36
authored
Oct 18, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Satisfy Rubocop
parent
024b6fa1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
abuse_reports_controller_spec.rb
spec/controllers/abuse_reports_controller_spec.rb
+6
-7
No files found.
spec/controllers/abuse_reports_controller_spec.rb
View file @
2e2a2a36
...
...
@@ -32,13 +32,13 @@ describe AbuseReportsController do
end
it
"saves the abuse report"
do
expect
{
expect
do
post
:create
,
abuse_report:
{
user_id:
user
.
id
,
message:
message
}
}
.
to
change
{
AbuseReport
.
count
}.
by
(
1
)
end
.
to
change
{
AbuseReport
.
count
}.
by
(
1
)
end
end
...
...
@@ -48,24 +48,23 @@ describe AbuseReportsController do
end
it
"does not send a notification email"
do
expect
{
expect
do
post
:create
,
abuse_report:
{
user_id:
user
.
id
,
message:
message
}
}.
not_to
change
{
ActionMailer
::
Base
.
deliveries
.
count
}
end
.
not_to
change
{
ActionMailer
::
Base
.
deliveries
.
count
}
end
it
"saves the abuse report"
do
expect
{
expect
do
post
:create
,
abuse_report:
{
user_id:
user
.
id
,
message:
message
}
}
.
to
change
{
AbuseReport
.
count
}.
by
(
1
)
end
.
to
change
{
AbuseReport
.
count
}.
by
(
1
)
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