Improve readability

This commit is contained in:
Artur Beljajev 2019-04-05 20:22:01 +03:00
parent ffe11685ff
commit eb1ee426ca
14 changed files with 48 additions and 47 deletions

View file

@ -7,7 +7,7 @@ RSpec.describe RegistrantChange do
let(:message) { instance_spy(ActionMailer::MessageDelivery) }
before :example do
allow(RegistrantChangeMailer).to receive(:confirmed)
allow(RegistrantChangeMailer).to receive(:accepted)
.with(domain: domain, old_registrant: old_registrant)
.and_return(message)
described_class.new(domain: domain, old_registrant: old_registrant).confirm