Class: MotionSpec::Matcher::Match

Inherits:
SingleMethod show all
Defined in:
lib/motion-spec/matcher/match.rb

Instance Method Summary collapse

Methods inherited from SingleMethod

#fail!, #matches?

Constructor Details

#initialize(value) ⇒ Match

Returns a new instance of Match.



5
6
7
# File 'lib/motion-spec/matcher/match.rb', line 5

def initialize(value)
  super(:match, value)
end

Instance Method Details

#fail_message(subject, negated) ⇒ Object



9
10
11
# File 'lib/motion-spec/matcher/match.rb', line 9

def fail_message(subject, negated)
  FailMessageRenderer.message_for_match(negated, subject, @values.first)
end