diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 17:34:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 17:34:42 +0300 |
commit | 9f46488805e86b1bc341ea1620b866016c2ce5ed (patch) | |
tree | f9748c7e287041e37d6da49e0a29c9511dc34768 /spec/graphql/gitlab_schema_spec.rb | |
parent | dfc92d081ea0332d69c8aca2f0e745cb48ae5e6d (diff) |
Add latest changes from gitlab-org/gitlab@13-0-stable-ee
Diffstat (limited to 'spec/graphql/gitlab_schema_spec.rb')
-rw-r--r-- | spec/graphql/gitlab_schema_spec.rb | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/spec/graphql/gitlab_schema_spec.rb b/spec/graphql/gitlab_schema_spec.rb index 0f21a55f7e9..8960ad91543 100644 --- a/spec/graphql/gitlab_schema_spec.rb +++ b/spec/graphql/gitlab_schema_spec.rb @@ -191,13 +191,17 @@ describe GitlabSchema do context 'for other classes' do # We cannot use an anonymous class here as `GlobalID` expects `.name` not # to return `nil` - class TestGlobalId - include GlobalID::Identification - attr_accessor :id - - def initialize(id) - @id = id + before do + test_global_id = Class.new do + include GlobalID::Identification + attr_accessor :id + + def initialize(id) + @id = id + end end + + stub_const('TestGlobalId', test_global_id) end it 'falls back to a regular find' do |