Sha256: 3a5205c05fd36892713b57bbb80d6488eda88f9f8d3f96e58a99bd1d65c84b0c
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
module RSpec module GraphqlMatchers module HaveAFieldMatchers class WithProperty def initialize(expected_property_name) @expected_property_name = expected_property_name end def description "resolving with property `#{@expected_property_name}`" end def matches?(actual_field) actual_field.property.to_sym == @expected_property_name.to_sym 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_property.rb |