Flowdock
method

should

Importance_1
RSpec latest stable (1.3.1) - 0 notes - 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.

These similar methods exist in 1.3.1:

should(matcher=nil, &block) public
  receiver.should(matcher)
    => Passes if matcher.matches?(receiver)

  receiver.should == expected #any value
    => Passes if (receiver == expected)

  receiver.should === expected #any value
    => Passes if (receiver === expected)

  receiver.should =~ regexp
    => Passes if (receiver =~ regexp)

See Spec::Matchers for more information about matchers

Warning

NOTE that this does NOT support receiver.should != expected. Instead, use receiver.should_not == expected

Show source
Register or log in to add new notes.