lib/rspec/graphql_matchers/matchers.rb in rspec-graphql_matchers-0.4.0 vs lib/rspec/graphql_matchers/matchers.rb in rspec-graphql_matchers-0.5

- old
+ new

@@ -17,7 +17,19 @@ # rubocop:disable Style/PredicateName def have_a_field(field_name) RSpec::GraphqlMatchers::HaveAField.new(field_name) end alias have_field have_a_field + + # rubocop:disable Style/PredicateName + def have_an_input_field(field_name) + RSpec::GraphqlMatchers::HaveAField.new(field_name, :input_fields) + end + alias have_input_field have_an_input_field + + # rubocop:disable Style/PredicateName + def have_a_return_field(field_name) + RSpec::GraphqlMatchers::HaveAField.new(field_name, :return_fields) + end + alias have_return_field have_a_return_field end end