Closed bitscraps closed 5 years ago
I've added the gem in a test block within the Gemfile and rub bundle install.
However when I run the test which is:
require 'rails_helper' RSpec.describe Types:ClassName, type: :object do subject { self.described_class } it { is_expected.to have_a_field(:id) } end
It errors with:
Failure/Error: it { is_expected.to have_a_field(:id) } expected Types::Events::EventType to respond to `has_a_field?
Is there some additional config needed that does not appear in the documentation.
I'm running rspec-graphql_matchers (0.7.1) and graphql (1.9.4)
Hi @bitscraps,
how is your gemfile? Are you sure the gem is being loaded in the test env?
Closing for inactivity
I've added the gem in a test block within the Gemfile and rub bundle install.
However when I run the test which is:
It errors with:
Is there some additional config needed that does not appear in the documentation.
I'm running rspec-graphql_matchers (0.7.1) and graphql (1.9.4)