method

anything

Importance_2
RSpec latest stable (1.1.4) - 1 note - Class: Spec::Mocks::ArgumentConstraintMatchers
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
7 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)