Class: Class

Class | Class
In: | lib/mocha/object.rb
Parent: | Object

### Methods

any_instance

### Public Instance methods

any_instance → mock object

Returns a mock object which will detect calls to any instance of this class.

      Product.any_instance.stubs(:save).returns(false)
      product_1 = Product.new
      assert_equal false, product_1.save
      product_2 = Product.new
      assert_equal false, product_2.save

[Validate]