Commit d9c4d575 authored by Rémy Coutable's avatar Rémy Coutable

Fix a Rubocop offense

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 64c495ef
...@@ -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
......
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment