class RSpec::GraphqlMatchers::HaveAFieldMatchers::OfType

Public Instance Methods

description() click to toggle source
# File lib/rspec/graphql_matchers/have_a_field_matchers/of_type.rb, line 5
def description
  "of type `#{expected}`"
end
failure_message() click to toggle source
# 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