Module: RSpec::Matchers

Defined in:
lib/rspec/graphql_matchers/matchers.rb

Instance Method Summary collapse

Instance Method Details

#accept_arguments(expected_args) ⇒ Object Also known as: accept_argument



12
13
14
# File 'lib/rspec/graphql_matchers/matchers.rb', line 12

def accept_arguments(expected_args)
  RSpec::GraphqlMatchers::AcceptArguments.new(expected_args)
end

#be_of_type(expected) ⇒ Object



8
9
10
# File 'lib/rspec/graphql_matchers/matchers.rb', line 8

def be_of_type(expected)
  RSpec::GraphqlMatchers::BeOfType.new(expected)
end

#have_a_field(field_name) ⇒ Object Also known as: have_field

rubocop:disable Style/PredicateName



18
19
20
# File 'lib/rspec/graphql_matchers/matchers.rb', line 18

def have_a_field(field_name)
  RSpec::GraphqlMatchers::HaveAField.new(field_name)
end