Class: RSpec::GraphqlMatchers::HaveAFieldMatchers::OfType
- Inherits:
-
BeOfType
show all
- Defined in:
- lib/rspec/graphql_matchers/have_a_field_matchers/of_type.rb
Instance Attribute Summary
Attributes inherited from BeOfType
#expected, #sample
Instance Method Summary
collapse
Methods inherited from BeOfType
#initialize, #matches?
Instance Method Details
#description ⇒ Object
5
6
7
|
# File 'lib/rspec/graphql_matchers/have_a_field_matchers/of_type.rb', line 5
def description
"of type `#{expected}`"
end
|
#failure_message ⇒ Object
9
10
11
|
# File 'lib/rspec/graphql_matchers/have_a_field_matchers/of_type.rb', line 9
def failure_message
"#{description}, but it was `#{type_name(sample.type)}`"
end
|