Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/matchers/graphql_matchers.rb')
-rw-r--r--spec/support/matchers/graphql_matchers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/matchers/graphql_matchers.rb b/spec/support/matchers/graphql_matchers.rb
index dbf457a9200..282deea4606 100644
--- a/spec/support/matchers/graphql_matchers.rb
+++ b/spec/support/matchers/graphql_matchers.rb
@@ -8,7 +8,7 @@ end
RSpec::Matchers.define :have_graphql_fields do |*expected|
def expected_field_names
- expected.map { |name| GraphqlHelpers.fieldnamerize(name) }
+ Array.wrap(expected).map { |name| GraphqlHelpers.fieldnamerize(name) }
end
match do |kls|