Flowdock
method

should_not

Importance_1
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

Show source
Register or log in to add new notes.