method

anything

anything()
public

No documentation available.

# File lib/spec/mocks/argument_constraint_matchers.rb, line 14
      def anything
        AnyArgConstraint.new(nil)
      end

1Note

anything matcher

Olly ยท Aug 15, 20089 thanks

The anything matcher will match any ruby object: 1.should == anything nil.should == anything 'string'.should == anything

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