Sha256: 257ce3fd201264a7ee06a40518770fb4c9c2bcefb060112fe264f07891fa51ff

Contents?: true

Size: 328 Bytes

Versions: 6

Compression:

Stored size: 328 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
rspec-graphql_matchers-1.3.0 lib/rspec/graphql_matchers/have_a_field_matchers/of_type.rb
rspec-graphql_matchers-1.2.1 lib/rspec/graphql_matchers/have_a_field_matchers/of_type.rb
rspec-graphql_matchers-1.2 lib/rspec/graphql_matchers/have_a_field_matchers/of_type.rb
rspec-graphql_matchers-1.1 lib/rspec/graphql_matchers/have_a_field_matchers/of_type.rb
rspec-graphql_matchers-1.0.1 lib/rspec/graphql_matchers/have_a_field_matchers/of_type.rb
rspec-graphql_matchers-1.0 lib/rspec/graphql_matchers/have_a_field_matchers/of_type.rb