Method: Kernel#should_not
- Defined in:
- lib/rspec/expectations/extensions/kernel.rb
#should_not(matcher = nil, message = nil, &block) ⇒ Object
:call-seq:
should_not(matcher)
should_not == expected
should_not === expected
should_not =~ expected
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 RSpec::Matchers for more information about matchers
49 50 51 |
# File 'lib/rspec/expectations/extensions/kernel.rb', line 49 def should_not(matcher=nil, =nil, &block) RSpec::Expectations::NegativeExpectationHandler.handle_matcher(self, matcher, , &block) end |