Sha256: 4919155de7cf04b4f6df3ceb7fa72759fda208081d85aacc59d8e261106b8ac1
Contents?: true
Size: 413 Bytes
Versions: 1
Compression:
Stored size: 413 Bytes
Contents
module RSpec module GraphqlMatchers module HaveAFieldMatchers class WithMetadata def initialize(expected_metadata) @expected_metadata = expected_metadata end def description "with metadata `#{@expected_metadata}`" end def matches?(actual_field) actual_field.metadata == @expected_metadata end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-graphql_matchers-1.0.0.pre.0.1 | lib/rspec/graphql_matchers/have_a_field_matchers/with_metadata.rb |