Methods

Class/Module Index [+]

Quicksearch

RSpec::Mocks::AnyInstance::Chain::Customizations

Public Class Methods

record(method_name) click to toggle source

@macro [attach] record

@method $1(*args, &block)
Records the `$1` message for playback against an instance that
invokes a method stubbed or mocked using `any_instance`.

@see RSpec::Mocks::MessageExpectation#$1
# File lib/rspec/mocks/any_instance/chain.rb, line 18
def self.record(method_name)
  class_eval(              def #{method_name}(*args, &block)                record(:#{method_name}, *args, &block)              end, __FILE__, __LINE__ + 1)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.