Sha256: 2a4c418bd9964930374738fbc31c30db2899d9da334b0e3f584234b2574ef92e
Contents?: true
Size: 629 Bytes
Versions: 3
Compression:
Stored size: 629 Bytes
Contents
require 'rspec/matchers' require 'rspec/graphql_matchers/be_of_type' require 'rspec/graphql_matchers/accept_arguments' require 'rspec/graphql_matchers/have_a_field' module RSpec module Matchers def be_of_type(expected) RSpec::GraphqlMatchers::BeOfType.new(expected) end def accept_arguments(expected_args) RSpec::GraphqlMatchers::AcceptArguments.new(expected_args) end alias accept_argument accept_arguments # rubocop:disable Style/PredicateName def have_a_field(field_name) RSpec::GraphqlMatchers::HaveAField.new(field_name) end alias have_field have_a_field end end
Version data entries
3 entries across 3 versions & 1 rubygems