Commit 82226d53 authored by Alex Kalderimis's avatar Alex Kalderimis

Ensure that we can handle single fields

parent ceb41f2e
......@@ -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|
......
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