module RSpec::Matchers

Public Instance Methods

accept_argument(expected_argument) click to toggle source
# File lib/rspec/graphql_matchers/matchers.rb, line 14
def accept_argument(expected_argument)
  RSpec::GraphqlMatchers::AcceptArgument.new(expected_argument)
 end
accept_arguments(expected_args) click to toggle source
# File lib/rspec/graphql_matchers/matchers.rb, line 18
def accept_arguments(expected_args)
  RSpec::GraphqlMatchers::AcceptArguments.new(expected_args)
end
be_of_type(expected) click to toggle source
# File lib/rspec/graphql_matchers/matchers.rb, line 10
def be_of_type(expected)
  RSpec::GraphqlMatchers::BeOfType.new(expected)
end
have_a_field(field_name) click to toggle source

rubocop:disable Style/PredicateName

# File lib/rspec/graphql_matchers/matchers.rb, line 23
def have_a_field(field_name)
  RSpec::GraphqlMatchers::HaveAField.new(field_name)
end
Also aliased as: have_field
have_a_return_field(field_name) click to toggle source
# File lib/rspec/graphql_matchers/matchers.rb, line 33
def have_a_return_field(field_name)
  RSpec::GraphqlMatchers::HaveAField.new(field_name, :return_fields)
end
Also aliased as: have_return_field
have_an_input_field(field_name) click to toggle source
# File lib/rspec/graphql_matchers/matchers.rb, line 28
def have_an_input_field(field_name)
  RSpec::GraphqlMatchers::HaveAField.new(field_name, :input_fields)
end
Also aliased as: have_input_field
have_field(field_name)
Alias for: have_a_field
have_input_field(field_name)
Alias for: have_an_input_field
have_return_field(field_name)
Alias for: have_a_return_field
implement(*interface_names) click to toggle source
# File lib/rspec/graphql_matchers/matchers.rb, line 38
def implement(*interface_names)
  RSpec::GraphqlMatchers::Implement.new(interface_names.flatten)
end