method

anything

Importance_2
RSpec latest stable (1.2.8) - 1 note - Class: Spec::Mocks::ArgumentConstraintMatchers

Method deprecated

This method is deprecated on the latest stable version of Rails. The last existing version (1.1.4) is shown here.

anything() public

No documentation

This method has no description. You can help the RSpec community by adding new notes.

Show source
Register or log in to add new notes.
August 15, 2008
8 thanks

anything matcher

The anything matcher will match any ruby object:

  1.should == anything
  nil.should == anything
  'string'.should == anything

  var.should_receive(:method).with(param1, anything)