Commit 47dd6045 authored by Sean McGivern's avatar Sean McGivern Committed by Felipe Artur

Make RuboCop happy

parent 8e0c0a46
......@@ -17,7 +17,7 @@ describe Gitlab::Email::Handler::EE::ServiceDeskHandler do
project.update(service_desk_mail_key: 'somemailkey')
allow(Notify).to receive(:service_desk_thank_you_email)
.with(instance_of(Fixnum)).and_return(double(deliver_later!: true))
.with(kind_of(Integer)).and_return(double(deliver_later!: true))
allow_any_instance_of(License).to receive(:add_on?).and_call_original
allow_any_instance_of(License).to receive(:add_on?).with('GitLab_ServiceDesk') { true }
......@@ -26,7 +26,7 @@ describe Gitlab::Email::Handler::EE::ServiceDeskHandler do
it 'sends thank you the email and creates issue' do
setup_attachment
expect(Notify).to receive(:service_desk_thank_you_email).with(instance_of(Fixnum))
expect(Notify).to receive(:service_desk_thank_you_email).with(kind_of(Integer))
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