Commit 20088565 authored by Alex Kalderimis's avatar Alex Kalderimis

Clarify the test contexts

This explains that the client's declaration of the argument type is the
determinant of which values are compatible.
parent 84a48ba9
......@@ -162,7 +162,7 @@ RSpec.describe Types::GlobalIDType do
end
end
context 'when the argument is declared as ID' do
context 'when the client declares the argument as ID the actual argument can be any type' do
let(:document) do
<<-GRAPHQL
query($projectId: ID!){
......@@ -182,7 +182,7 @@ RSpec.describe Types::GlobalIDType do
end
end
context 'when the argument is passed as GlobalID' do
context 'when the client passes the argument as GlobalID' do
let(:document) do
<<-GRAPHQL
query($projectId: GlobalID!) {
......@@ -202,7 +202,7 @@ RSpec.describe Types::GlobalIDType do
end
end
context 'when the argument is passed as ProjectID' do
context 'when the client passes the argument as ProjectID' do
let(:document) do
<<-GRAPHQL
query($projectId: ProjectID!) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment