method
should_not

RSpec latest stable (1.3.1)
-
0 notes -
Class: Spec::Expectations::ObjectExpectations
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0 (0)
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
should_not(matcher=nil, &block)
public
receiver.should_not(matcher) => Passes unless matcher.matches?(receiver) receiver.should_not == expected => Passes unless (receiver == expected) receiver.should_not === expected => Passes unless (receiver === expected) receiver.should_not =~ regexp => Passes unless (receiver =~ regexp)
See Spec::Matchers for more information about matchers