Commit c92e09ec authored by Stan Hu's avatar Stan Hu

Fix failing spec

parent 5f9eba6c
...@@ -122,6 +122,7 @@ describe Project, models: true do ...@@ -122,6 +122,7 @@ describe Project, models: true do
before do before do
allow_any_instance_of(License).to receive(:add_on?).and_call_original 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 } allow_any_instance_of(License).to receive(:add_on?).with('GitLab_ServiceDesk') { true }
allow(Gitlab.config.incoming_email).to receive(:enabled).and_return(true)
allow(Gitlab.config.incoming_email).to receive(:address).and_return("test+%{key}@mail.com") allow(Gitlab.config.incoming_email).to receive(:address).and_return("test+%{key}@mail.com")
end end
......
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