summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2019-06-03 20:15:04 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2019-06-03 21:59:33 +0200
commitf16b13113ff580fbde78f8f6ba42a3f86c04ca12 (patch)
tree7f02f606fe484ff76f12cc649ea44d000d5c6e0c /spec
parented503d51a39943b482e917028d589cc26ec01c95 (diff)
downloadgitlab-ce-f16b13113ff580fbde78f8f6ba42a3f86c04ca12.tar.gz
Fix incorrect instances of `GraphQL::ID_TYPE`
Since the `GraphQL::ID_TYPE` usages should represent globally unique ids, this changes some fields for which this is not the case into strings. The `ID_TYPE` is a specialised, so this change should be backwards compatible. https://graphql-ruby.org/type_definitions/scalars.html
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/api/graphql/mutations/merge_requests/set_wip_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/api/graphql/mutations/merge_requests/set_wip_spec.rb b/spec/requests/api/graphql/mutations/merge_requests/set_wip_spec.rb
index 8f427d71a32..d75f0df9fd3 100644
--- a/spec/requests/api/graphql/mutations/merge_requests/set_wip_spec.rb
+++ b/spec/requests/api/graphql/mutations/merge_requests/set_wip_spec.rb
@@ -11,7 +11,7 @@ describe 'Setting WIP status of a merge request' do
let(:mutation) do
variables = {
project_path: project.full_path,
- iid: merge_request.iid
+ iid: merge_request.iid.to_s
}
graphql_mutation(:merge_request_set_wip, variables.merge(input))
end