diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-10 21:08:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-10 21:08:27 +0300 |
commit | 56b3925584320c4406b7cb961fbe19ff9f9c41d4 (patch) | |
tree | ea7fdd802d958c585ecf46045ccf1db52417b096 /spec/support_specs | |
parent | 758b97662c5a6af41357cec7e25fc8cddadd8b9c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support_specs')
-rw-r--r-- | spec/support_specs/helpers/graphql_helpers_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/support_specs/helpers/graphql_helpers_spec.rb b/spec/support_specs/helpers/graphql_helpers_spec.rb index 0f9918351e2..f567097af6f 100644 --- a/spec/support_specs/helpers/graphql_helpers_spec.rb +++ b/spec/support_specs/helpers/graphql_helpers_spec.rb @@ -41,7 +41,7 @@ RSpec.describe GraphqlHelpers do context 'with just a model' do it 'only considers the ID' do user = build_stubbed(:user) - response = { 'username' => 'foo', 'id' => global_id_of(user) } + response = { 'username' => 'foo', 'id' => global_id_of(user).to_s } expect(response).to match a_graphql_entity_for(user) end @@ -50,7 +50,7 @@ RSpec.describe GraphqlHelpers do context 'with a model and some method names' do it 'also considers the method names' do user = build_stubbed(:user) - response = { 'username' => user.username, 'id' => global_id_of(user) } + response = { 'username' => user.username, 'id' => global_id_of(user).to_s } expect(response).to match a_graphql_entity_for(user, :username) expect(response).not_to match a_graphql_entity_for(user, :name) @@ -60,7 +60,7 @@ RSpec.describe GraphqlHelpers do context 'with a model and some other properties' do it 'behaves like the superset' do user = build_stubbed(:user) - response = { 'username' => 'foo', 'id' => global_id_of(user) } + response = { 'username' => 'foo', 'id' => global_id_of(user).to_s } expect(response).to match a_graphql_entity_for(user, username: 'foo') expect(response).not_to match a_graphql_entity_for(user, name: 'foo') @@ -75,7 +75,7 @@ RSpec.describe GraphqlHelpers do 'name' => user.name, 'foo' => 'bar', 'baz' => 'fop', - 'id' => global_id_of(user) + 'id' => global_id_of(user).to_s } expect(response).to match a_graphql_entity_for(user, :username, :name, foo: 'bar') |