Class: BaconExpect::Matcher::Eq
- Inherits:
-
SingleMethod
- Object
- SingleMethod
- BaconExpect::Matcher::Eq
- Defined in:
- lib/bacon-expect/matchers/eq.rb
Instance Method Summary collapse
- #fail_message(subject, negated) ⇒ Object
-
#initialize(value) ⇒ Eq
constructor
A new instance of Eq.
Methods inherited from SingleMethod
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 (subject, negated) FailMessageRenderer.(negated, subject, @values.first) end |