Extract EE specific files/lines for spec/support/api

We have the following files containing EE specific code. We should move them to ee/

spec/support/api/milestones_shared_examples.rb
diff --git a/spec/support/api/milestones_shared_examples.rb b/home/yorickpeterse/Projects/gitlab/gdk-ee/gitlab/spec/support/api/milestones_shared_examples.rb
index 5f709831ce1..dddad90b89c 100644
--- a/spec/support/api/milestones_shared_examples.rb
+++ b/home/yorickpeterse/Projects/gitlab/gdk-ee/gitlab/spec/support/api/milestones_shared_examples.rb
@@ -240,7 +240,7 @@ shared_examples_for 'group and project milestones' do |route_definition|
       get api(issues_route, user)
 
       expect(response).to have_gitlab_http_status(200)
-      expect(response).to match_response_schema('public_api/v4/issues')
+      expect(response).to match_response_schema('public_api/v4/issues', dir: 'ee')
     end
 
     it 'returns a 401 error if user not authenticated' do
spec/support/api/schema_matcher.rb
diff --git a/spec/support/api/schema_matcher.rb b/home/yorickpeterse/Projects/gitlab/gdk-ee/gitlab/spec/support/api/schema_matcher.rb
index 6591d56e473..f7d74df0656 100644
--- a/spec/support/api/schema_matcher.rb
+++ b/home/yorickpeterse/Projects/gitlab/gdk-ee/gitlab/spec/support/api/schema_matcher.rb
@@ -1,6 +1,6 @@
 module SchemaPath
   def self.expand(schema, dir = '')
-    Rails.root.join('spec', dir, "fixtures/api/schemas/#{schema}.json").to_s
+    Rails.root.join(dir, 'spec', "fixtures/api/schemas/#{schema}.json").to_s
   end
 end
Edited Aug 27, 2025 by Dave Smith
Assignee Loading
Time tracking Loading