lib/rspec/graphql_matchers/matchers.rb in rspec-graphql_matchers-0.7.1 vs lib/rspec/graphql_matchers/matchers.rb in rspec-graphql_matchers-1.0.0.pre.0.1
- old
+ new
@@ -18,13 +18,15 @@
# rubocop:disable Style/PredicateName
def have_a_field(field_name)
RSpec::GraphqlMatchers::HaveAField.new(field_name)
end
alias have_field have_a_field
+
def have_an_input_field(field_name)
RSpec::GraphqlMatchers::HaveAField.new(field_name, :input_fields)
end
alias have_input_field have_an_input_field
+
def have_a_return_field(field_name)
RSpec::GraphqlMatchers::HaveAField.new(field_name, :return_fields)
end
alias have_return_field have_a_return_field