Commit a8e858bb authored by Bryce Johnson's avatar Bryce Johnson

Enable incoming email in first before block.

parent dfeabe07
...@@ -7,6 +7,8 @@ describe 'Service Desk Issue Tracker', js: true do ...@@ -7,6 +7,8 @@ describe 'Service Desk Issue Tracker', js: true do
before do before do
allow(License).to receive(:feature_available?).and_call_original allow(License).to receive(:feature_available?).and_call_original
allow(License).to receive(:feature_available?).with(:service_desk) { true } allow(License).to receive(:feature_available?).with(:service_desk) { true }
allow(Gitlab::IncomingEmail).to receive(:enabled?) { true }
allow(Gitlab::IncomingEmail).to receive(:supports_wildcard?) { true }
project.add_master(user) project.add_master(user)
sign_in(user) sign_in(user)
...@@ -50,8 +52,6 @@ describe 'Service Desk Issue Tracker', js: true do ...@@ -50,8 +52,6 @@ describe 'Service Desk Issue Tracker', js: true do
context 'when service desk has been activated' do context 'when service desk has been activated' do
before do before do
allow(Gitlab::IncomingEmail).to receive(:enabled?) { true }
allow(Gitlab::IncomingEmail).to receive(:supports_wildcard?) { true }
end end
context 'when there are no issues' do context 'when there are no issues' do
......
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