method

should_not

Importance_1
should_not(matcher=nil, message=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

Show source
Register or log in to add new notes.