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
0
Merge Requests
0
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
Léo-Paul Géneau
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
...
@@ -32,13 +32,13 @@ describe AbuseReportsController do
end
end
it
"saves the abuse report"
do
it
"saves the abuse report"
do
expect
{
expect
do
post
:create
,
post
:create
,
abuse_report:
{
abuse_report:
{
user_id:
user
.
id
,
user_id:
user
.
id
,
message:
message
message:
message
}
}
}
.
to
change
{
AbuseReport
.
count
}.
by
(
1
)
end
.
to
change
{
AbuseReport
.
count
}.
by
(
1
)
end
end
end
end
...
@@ -48,24 +48,23 @@ describe AbuseReportsController do
...
@@ -48,24 +48,23 @@ describe AbuseReportsController do
end
end
it
"does not send a notification email"
do
it
"does not send a notification email"
do
expect
{
expect
do
post
:create
,
post
:create
,
abuse_report:
{
abuse_report:
{
user_id:
user
.
id
,
user_id:
user
.
id
,
message:
message
message:
message
}
}
end
.
not_to
change
{
ActionMailer
::
Base
.
deliveries
.
count
}
}.
not_to
change
{
ActionMailer
::
Base
.
deliveries
.
count
}
end
end
it
"saves the abuse report"
do
it
"saves the abuse report"
do
expect
{
expect
do
post
:create
,
post
:create
,
abuse_report:
{
abuse_report:
{
user_id:
user
.
id
,
user_id:
user
.
id
,
message:
message
message:
message
}
}
}
.
to
change
{
AbuseReport
.
count
}.
by
(
1
)
end
.
to
change
{
AbuseReport
.
count
}.
by
(
1
)
end
end
end
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