Method: Class#any_instance
- Defined in:
- lib/rspec/mocks/syntax.rb
#any_instance ⇒ Recorder
Note:
This is only available when you have enabled the should syntax.
Used to set stubs and message expectations on any instance of a given
class. Returns a Recorder, which records messages like
stub and should_receive for later playback on instances of the
class.
|
|
# File 'lib/rspec/mocks/syntax.rb', line 304
|