method

should_not

rspec latest stable - Class: Spec::Expectations::ObjectExpectations

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (1.2.0) is shown here.

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