summaryrefslogtreecommitdiff
path: root/spec/serializers/paginated_diff_entity_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/serializers/paginated_diff_entity_spec.rb')
-rw-r--r--spec/serializers/paginated_diff_entity_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/serializers/paginated_diff_entity_spec.rb b/spec/serializers/paginated_diff_entity_spec.rb
index 77569aaa4bc..a6b83cb4286 100644
--- a/spec/serializers/paginated_diff_entity_spec.rb
+++ b/spec/serializers/paginated_diff_entity_spec.rb
@@ -30,4 +30,14 @@ describe PaginatedDiffEntity do
total_pages: 7
)
end
+
+ context 'when code_navigation feature flag is disabled' do
+ it 'does not execute Gitlab::CodeNavigationPath' do
+ stub_feature_flags(code_navigation: false)
+
+ expect(Gitlab::CodeNavigationPath).not_to receive(:new)
+
+ subject
+ end
+ end
end