diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-13 18:09:14 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-13 18:09:14 +0300 |
commit | a88c31d0ea1a79ca93fad357c3eb536b5e013e44 (patch) | |
tree | b38023b2be7478fa706c7a95d08cdfad13f8d8c1 /spec/support/graphql | |
parent | affec3ced2d85697d9a21d83e811285b030705f2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/graphql')
-rw-r--r-- | spec/support/graphql/arguments.rb | 4 |
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 |