Commit bbad4505 authored by rpereira2's avatar rpereira2

Stub license manually since helper is not helping

parent 1f2e7ec1
......@@ -190,7 +190,9 @@ describe Projects::Prometheus::Alerts::NotifyService do
create(:project_incident_management_setting, send_email: false, project: project)
stub_licensed_features(incident_management: false)
allow(project).to receive(:feature_available?).and_call_original
allow(project).to receive(:feature_available?)
.with(:incident_management).and_return(false)
end
include_examples 'notifies alerts'
......@@ -204,7 +206,9 @@ describe Projects::Prometheus::Alerts::NotifyService do
project: project,
token: token)
stub_licensed_features(incident_management: true)
allow(project).to receive(:feature_available?).and_call_original
allow(project).to receive(:feature_available?)
.with(:incident_management).and_return(true)
end
context 'when incident_management_setting does not exist' 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