Class: Graphiti::SpecHelpers::Matchers::ResourceDSLMatcher

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

Constant Summary

Constants inherited from BaseMatcher

BaseMatcher::EXPECTED_ACTION, BaseMatcher::GRAPHITI_CONFIG_KEY, BaseMatcher::GRAPHITI_OPTS

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, type) ⇒ ResourceDSLMatcher

Returns a new instance of ResourceDSLMatcher.



106
107
108
109
110
111
# File 'lib/graphiti/spec_helpers/matchers.rb', line 106

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