Class: Graphiti::SpecHelpers::Matchers::RelationMatcher

Inherits:
BaseMatcher show all
Defined in:
lib/graphiti/spec_helpers/matchers.rb

Direct Known Subclasses

BelongsToMatcher, HasManyMatcher, HasOneMatcher

Constant Summary collapse

GRAPHITI_OPTS =
%i[primary_key foreign_key resource readable writable link single].freeze
GRAPHITI_CONFIG_KEY =
:sideloads
EXPECTED_ACTION =
""

Instance Method Summary collapse

Methods inherited from BaseMatcher

#description, #does_not_match?, #failure_message, #failure_message_when_negated, #matches?, #opt_failure_message, #with_options

Constructor Details

#initialize(target) ⇒ RelationMatcher

Returns a new instance of RelationMatcher.



65
66
67
68
69
# File 'lib/graphiti/spec_helpers/matchers.rb', line 65

def initialize(target)
  @target = target
  @opts = {}
  @opt_failures = []
end