summaryrefslogtreecommitdiff
path: root/spec/support/graphql/arguments.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/graphql/arguments.rb')
-rw-r--r--spec/support/graphql/arguments.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/graphql/arguments.rb b/spec/support/graphql/arguments.rb
index a5bb01c31a3..478a460a0f6 100644
--- a/spec/support/graphql/arguments.rb
+++ b/spec/support/graphql/arguments.rb
@@ -5,7 +5,7 @@ module Graphql
delegate :blank?, :empty?, to: :to_h
def initialize(values)
- @values = values.compact
+ @values = values
end
def to_h
@@ -42,7 +42,7 @@ module Graphql
when Integer, Float, Symbol then value.to_s
when String, GlobalID then "\"#{value.to_s.gsub(/"/, '\\"')}\""
when Time, Date then "\"#{value.iso8601}\""
- when nil then 'null'
+ when NilClass then 'null'
when true then 'true'
when false then 'false'
else