Fix RSpec/VerifiedDoubles cop (#25469)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2023-06-22 14:55:22 +02:00
1 parent 38433ccd0b
commit 05f9e39b32
50 files changed
+162 -172

No files matched your search

@@ -23,7 +23,8 @@ RSpec.describe Admin::ChangeEmailsController do
describe 'GET #update' do
before do
allow(UserMailer).to receive(:confirmation_instructions).and_return(double('email', deliver_later: nil))
allow(UserMailer).to receive(:confirmation_instructions)
.and_return(instance_double(ActionMailer::MessageDelivery, deliver_later: nil))
end
it 'returns http success' do