summaryrefslogtreecommitdiff
path: root/spec/services/feature_flags/destroy_service_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/feature_flags/destroy_service_spec.rb')
-rw-r--r--spec/services/feature_flags/destroy_service_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/services/feature_flags/destroy_service_spec.rb b/spec/services/feature_flags/destroy_service_spec.rb
index d3796ef6b4d..740923db9b6 100644
--- a/spec/services/feature_flags/destroy_service_spec.rb
+++ b/spec/services/feature_flags/destroy_service_spec.rb
@@ -36,6 +36,8 @@ RSpec.describe FeatureFlags::DestroyService do
expect(audit_event_message).to eq("Deleted feature flag #{feature_flag.name}.")
end
+ it_behaves_like 'update feature flag client'
+
context 'when user is reporter' do
let(:user) { reporter }
@@ -57,6 +59,8 @@ RSpec.describe FeatureFlags::DestroyService do
it 'does not create audit log' do
expect { subject }.not_to change { AuditEvent.count }
end
+
+ it_behaves_like 'does not update feature flag client'
end
end
end