Sha256: d9379030a7cf36edb3404cdca0778a15aaa2dfd9af4e8cb246998bee96219640

Contents?: true

Size: 359 Bytes

Versions: 2

Compression:

Stored size: 359 Bytes

Contents

# frozen_string_literal: true

module RSpec
  module GraphqlMatchers
    module HaveAFieldMatchers
      class OfType < RSpec::GraphqlMatchers::BeOfType
        def description
          "of type `#{expected}`"
        end

        def failure_message
          "#{description}, but it was `#{type_name(sample.type)}`"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-graphql_matchers-1.4.0 lib/rspec/graphql_matchers/have_a_field_matchers/of_type.rb
rspec-graphql_matchers-1.3.1 lib/rspec/graphql_matchers/have_a_field_matchers/of_type.rb