Class: OSpec::PositiveOperatorMatcher
- Defined in:
- lib/ospec/matchers.rb
Instance Method Summary collapse
Methods inherited from Matcher
Constructor Details
This class inherits a constructor from OSpec::Matcher
Instance Method Details
#==(expected) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/ospec/matchers.rb', line 13 def == expected if @actual == expected true else failure "expected: #{expected.inspect}, got: #{@actual.inspect} (using ==)." end end |