Commit 88a68067 authored by Jason Goodman's avatar Jason Goodman Committed by Peter Leitzen

Move feature flag services to core

Part of moving feature flags to core
parent 07e0b783
......@@ -63,7 +63,7 @@ RSpec.describe FeatureFlags::CreateService do
'with strategies <strong>[{"name"=>"default", "parameters"=>{}}]</strong>.'
expect { subject }.to change { AuditEvent.count }.by(1)
expect(AuditEvent.last.present.action).to eq(expected_message)
expect(AuditEvent.last.details[:custom_message]).to eq(expected_message)
end
context 'when user is reporter' do
......
......@@ -19,7 +19,7 @@ RSpec.describe FeatureFlags::DestroyService do
describe '#execute' do
subject { described_class.new(project, user, params).execute(feature_flag) }
let(:audit_event_message) { AuditEvent.last.present.action }
let(:audit_event_message) { AuditEvent.last.details[:custom_message] }
let(:params) { {} }
it 'returns status success' do
......
......@@ -19,7 +19,7 @@ RSpec.describe FeatureFlags::UpdateService do
let(:params) { { name: 'new_name' } }
let(:audit_event_message) do
AuditEvent.last.present.action
AuditEvent.last.details[:custom_message]
end
it 'returns success status' 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