Method: OSpec::Expectations#should
- Defined in:
- lib/ospec/expectations.rb
#should(matcher = nil) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/ospec/expectations.rb', line 5 def should matcher = nil if matcher matcher.match self else OSpec::PositiveOperatorMatcher.new self end end |