Module: RSpec::Matchers
- Defined in:
- lib/rspec/graphql_assistant/matchers.rb
Instance Method Summary collapse
- #graphql_have_attributes(key, expected) ⇒ Object
- #graphql_include(key, expected) ⇒ Object
- #graphql_match(key, expected) ⇒ Object
Instance Method Details
#graphql_have_attributes(key, expected) ⇒ Object
7 8 9 |
# File 'lib/rspec/graphql_assistant/matchers.rb', line 7 def graphql_have_attributes(key, expected) RSpec::GraphqlAssistant::Matchers::HaveAttributes.new(key, expected) end |
#graphql_include(key, expected) ⇒ Object
3 4 5 |
# File 'lib/rspec/graphql_assistant/matchers.rb', line 3 def graphql_include(key, expected) RSpec::GraphqlAssistant::Matchers::Include.new(key, expected) end |
#graphql_match(key, expected) ⇒ Object
11 12 13 |
# File 'lib/rspec/graphql_assistant/matchers.rb', line 11 def graphql_match(key, expected) RSpec::GraphqlAssistant::Matchers::Match.new(key, expected) end |