summaryrefslogtreecommitdiff
path: root/spec/mailers
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-08-10 18:31:42 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-08-10 19:29:42 -0400
commitc8b802471bcb6ea9ea7af3c7a139598a1f945230 (patch)
treefb3fe5c094d8a831ede19d4ff2f1471914744907 /spec/mailers
parent4ef10795ce5e24dc0f905daeb7236fe707a8c195 (diff)
downloadgitlab-ce-c8b802471bcb6ea9ea7af3c7a139598a1f945230.tar.gz
Enable the RSpec/HookArgument cop and auto-correct offenses
Diffstat (limited to 'spec/mailers')
-rw-r--r--spec/mailers/notify_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb
index e36d7a1800c..1fa59ebd22b 100644
--- a/spec/mailers/notify_spec.rb
+++ b/spec/mailers/notify_spec.rb
@@ -545,7 +545,7 @@ describe Notify do
let(:note_author) { create(:user, name: 'author_name') }
let(:note) { create(:note, project: project, author: note_author) }
- before :each do
+ before do
allow(Note).to receive(:find).with(note.id).and_return(note)
end
@@ -661,7 +661,7 @@ describe Notify do
let(:project) { create(:project, :repository) }
let(:note_author) { create(:user, name: 'author_name') }
- before :each do
+ before do
allow(Note).to receive(:find).with(note.id).and_return(note)
end
@@ -779,7 +779,7 @@ describe Notify do
context 'items that are noteable, the email for a diff discussion note' do
let(:note_author) { create(:user, name: 'author_name') }
- before :each do
+ before do
allow(Note).to receive(:find).with(note.id).and_return(note)
end