method
anything
1.1.4 -
Show latest stable
- Class:
Spec::Mocks::ArgumentConstraintMatchers
anything()public
No documentation available.
# File lib/spec/mocks/argument_constraint_matchers.rb, line 14
def anything
AnyArgConstraint.new(nil)
end 1Note
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)