Commit 70463e4b authored by Matija Čupić's avatar Matija Čupić

Use stub_licensed_features to enable audit events

parent 83a33764
...@@ -458,8 +458,7 @@ describe API::Pipelines do ...@@ -458,8 +458,7 @@ describe API::Pipelines do
context 'when audit events is enabled' do context 'when audit events is enabled' do
before do before do
allow(License).to receive(:feature_available?).and_call_original stub_licensed_features(extended_audit_events: true)
allow(License).to receive(:feature_available?).with(:extended_audit_events).and_return(true)
end end
it 'logs an audit event' do it 'logs an audit event' do
......
...@@ -19,8 +19,7 @@ describe ::Ci::DestroyPipelineService do ...@@ -19,8 +19,7 @@ describe ::Ci::DestroyPipelineService do
context 'when audit events is enabled' do context 'when audit events is enabled' do
before do before do
allow(License).to receive(:feature_available?).and_call_original stub_licensed_features(extended_audit_events: true)
allow(License).to receive(:feature_available?).with(:extended_audit_events).and_return(true)
end end
it 'logs an audit event' do 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