Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
spec/controllers/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