Class: MotionSpec::Matcher::Be
- Inherits:
-
SingleMethod
- Object
- SingleMethod
- MotionSpec::Matcher::Be
- Defined in:
- lib/motion-spec/matcher/be.rb
Instance Method Summary collapse
- #fail_message(subject, negated) ⇒ Object
-
#initialize(value) ⇒ Be
constructor
A new instance of Be.
Methods inherited from SingleMethod
Constructor Details
#initialize(value) ⇒ Be
Returns a new instance of Be.
5 6 7 |
# File 'lib/motion-spec/matcher/be.rb', line 5 def initialize(value) super(:equal?, value) end |
Instance Method Details
#fail_message(subject, negated) ⇒ Object
9 10 11 12 13 |
# File 'lib/motion-spec/matcher/be.rb', line 9 def (subject, negated) FailMessageRenderer.( negated, subject, @values.first ) end |