Class: MotionSpec::Matcher::Eq

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

Instance Method Summary collapse

Methods inherited from SingleMethod

#fail!, #matches?

Constructor Details

#initialize(value) ⇒ Eq

Returns a new instance of Eq.



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

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

Instance Method Details

#fail_message(subject, negated) ⇒ Object



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

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