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 ...@@ -50,7 +50,7 @@ module Gitlab
end end
def send_thank_you_email! def send_thank_you_email!
Notify.thank_you_email(@issue.id) Notify.service_desk_thank_you_email(@issue.id)
end end
def from_address def from_address
......
...@@ -22,7 +22,7 @@ describe Gitlab::Email::Handler::EE::ServiceDeskHandler do ...@@ -22,7 +22,7 @@ describe Gitlab::Email::Handler::EE::ServiceDeskHandler do
it 'receives the email' do it 'receives the email' do
setup_attachment 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) 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