Class: BaconExpect::Matcher::Eq

Inherits:
SingleMethod show all
Defined in:
lib/bacon-expect/matchers/eq.rb

Instance Method Summary collapse

Methods inherited from SingleMethod

#fail!, #matches?

Constructor Details

#initialize(value) ⇒ Eq

Returns a new instance of Eq.



3
4
5
# File 'lib/bacon-expect/matchers/eq.rb', line 3

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

Instance Method Details

#fail_message(subject, negated) ⇒ Object



7
8
9
# File 'lib/bacon-expect/matchers/eq.rb', line 7

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