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
d9c4d575
Commit
d9c4d575
authored
Aug 10, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a Rubocop offense
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
64c495ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
spec/workers/new_issue_worker_spec.rb
spec/workers/new_issue_worker_spec.rb
+1
-1
spec/workers/new_merge_request_worker_spec.rb
spec/workers/new_merge_request_worker_spec.rb
+1
-1
No files found.
spec/workers/new_issue_worker_spec.rb
View file @
d9c4d575
...
@@ -41,7 +41,7 @@ describe NewIssueWorker do
...
@@ -41,7 +41,7 @@ describe NewIssueWorker do
let
(
:issue
)
{
create
(
:issue
,
project:
project
,
description:
"issue for
#{
mentioned
.
to_reference
}
"
)
}
let
(
:issue
)
{
create
(
:issue
,
project:
project
,
description:
"issue for
#{
mentioned
.
to_reference
}
"
)
}
it
'creates a new event record'
do
it
'creates a new event record'
do
expect
{
worker
.
perform
(
issue
.
id
,
user
.
id
)
}.
to
change
{
Event
.
count
}.
from
(
0
).
to
(
1
)
expect
{
worker
.
perform
(
issue
.
id
,
user
.
id
)
}.
to
change
{
Event
.
count
}.
from
(
0
).
to
(
1
)
end
end
it
'creates a notification for the assignee'
do
it
'creates a notification for the assignee'
do
...
...
spec/workers/new_merge_request_worker_spec.rb
View file @
d9c4d575
...
@@ -43,7 +43,7 @@ describe NewMergeRequestWorker do
...
@@ -43,7 +43,7 @@ describe NewMergeRequestWorker do
end
end
it
'creates a new event record'
do
it
'creates a new event record'
do
expect
{
worker
.
perform
(
merge_request
.
id
,
user
.
id
)
}.
to
change
{
Event
.
count
}.
from
(
0
).
to
(
1
)
expect
{
worker
.
perform
(
merge_request
.
id
,
user
.
id
)
}.
to
change
{
Event
.
count
}.
from
(
0
).
to
(
1
)
end
end
it
'creates a notification for the assignee'
do
it
'creates a notification for the assignee'
do
...
...
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