summaryrefslogtreecommitdiff
path: root/spec/requests/api/graphql_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/requests/api/graphql_spec.rb')
-rw-r--r--spec/requests/api/graphql_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/requests/api/graphql_spec.rb b/spec/requests/api/graphql_spec.rb
index 036dfa41952..ebf223127b5 100644
--- a/spec/requests/api/graphql_spec.rb
+++ b/spec/requests/api/graphql_spec.rb
@@ -23,7 +23,7 @@ describe 'GraphQL' do
context 'with no variables' do
let(:expected) do
- { query_string: query, variables: {}, duration: anything, depth: 0, complexity: 0 }
+ { query_string: query, variables: {}, duration: anything, depth: 1, complexity: 1 }
end
it 'logs the query' do
@@ -33,10 +33,10 @@ describe 'GraphQL' do
context 'with variables' do
let!(:variables) do
- { foo: "bar" }
+ { "foo" => "bar" }
end
let(:expected) do
- { query_string: query, variables: variables, duration: anything, depth: 0, complexity: 0 }
+ { query_string: query, variables: variables, duration: anything, depth: 1, complexity: 1 }
end
it 'logs the query' do