Commit 5c741fc8 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'fix-pipelines-spec' into 'master'

Use stub_licensed_features to enable audit events

See merge request gitlab-org/gitlab-ee!8512
parents 9f04b5a1 70463e4b
......@@ -458,8 +458,7 @@ describe API::Pipelines do
context 'when audit events is enabled' do
before do
allow(License).to receive(:feature_available?).and_call_original
allow(License).to receive(:feature_available?).with(:extended_audit_events).and_return(true)
stub_licensed_features(extended_audit_events: true)
end
it 'logs an audit event' do
......
......@@ -19,8 +19,7 @@ describe ::Ci::DestroyPipelineService do
context 'when audit events is enabled' do
before do
allow(License).to receive(:feature_available?).and_call_original
allow(License).to receive(:feature_available?).with(:extended_audit_events).and_return(true)
stub_licensed_features(extended_audit_events: true)
end
it 'logs an audit event' 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