summaryrefslogtreecommitdiff
path: root/spec/controllers/projects/tracings_controller_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers/projects/tracings_controller_spec.rb')
-rw-r--r--spec/controllers/projects/tracings_controller_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/controllers/projects/tracings_controller_spec.rb b/spec/controllers/projects/tracings_controller_spec.rb
index 1f8a68cc861..80e21349e20 100644
--- a/spec/controllers/projects/tracings_controller_spec.rb
+++ b/spec/controllers/projects/tracings_controller_spec.rb
@@ -51,6 +51,16 @@ RSpec.describe Projects::TracingsController do
it_behaves_like 'user with read access', :public
it_behaves_like 'user with read access', :internal
it_behaves_like 'user with read access', :private
+
+ context 'feature flag disabled' do
+ before do
+ stub_feature_flags(monitor_tracing: false)
+ end
+
+ it_behaves_like 'user without read access', :public
+ it_behaves_like 'user without read access', :internal
+ it_behaves_like 'user without read access', :private
+ end
end
context 'without maintainer role' do