Class: BaconExpect::Matcher::Be

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

Instance Method Summary collapse

Methods inherited from SingleMethod

#fail!, #matches?

Constructor Details

#initialize(value) ⇒ Be

Returns a new instance of Be.



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

def initialize(value)
  super(:equal?, value)
end

Instance Method Details

#fail_message(subject, negated) ⇒ Object



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

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