Commit e10cb110 authored by http://jneen.net/'s avatar http://jneen.net/ Committed by Felipe Artur

call and stub the correct method name

parent c5774b2c
......@@ -50,7 +50,7 @@ module Gitlab
end
def send_thank_you_email!
Notify.thank_you_email(@issue.id)
Notify.service_desk_thank_you_email(@issue.id)
end
def from_address
......
......@@ -22,7 +22,7 @@ describe Gitlab::Email::Handler::EE::ServiceDeskHandler do
it 'receives the email' do
setup_attachment
expect(Notify).to receive(:thank_you_email).with(instance_of(Fixnum))
expect(Notify).to receive(:service_desk_thank_you_email).with(instance_of(Fixnum))
expect { receiver.execute }.to change { Issue.count }.by(1)
......
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