method
should_not

1.1.4 -
Show latest stable
-
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=:use_operator_matcher, &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 <a href="/rspec/Spec/Matchers">Spec::Matchers</a> for more information about matchers