Method: Kintama::Context::ClassMethods#should_not
- Defined in:
- lib/kintama/context.rb
#should_not(matcher) ⇒ Object
Define a test using a negated matcher, e.g.
subject { 'a' }
should_not equal('b')
193 194 195 196 197 |
# File 'lib/kintama/context.rb', line 193 def should_not(matcher) test("should not " + matcher.description) do assert !matcher.matches?(subject), matcher. end end |