Module: RSpec::Mocks::AnyInstance::Chain::Customizations
- Included in:
- RSpec::Mocks::AnyInstance::Chain
- Defined in:
- lib/rspec/mocks/any_instance/chain.rb
Class Method Summary (collapse)
Instance Method Summary (collapse)
-
- (Object) and_call_original
Records the
and_call_original
message for playback against an instance that invokes a method stubbed or mocked usingany_instance
. -
- (Object) and_raise
Records the
and_raise
message for playback against an instance that invokes a method stubbed or mocked usingany_instance
. -
- (Object) and_return
Records the
and_return
message for playback against an instance that invokes a method stubbed or mocked usingany_instance
. -
- (Object) and_throw
Records the
and_throw
message for playback against an instance that invokes a method stubbed or mocked usingany_instance
. -
- (Object) and_yield
Records the
and_yield
message for playback against an instance that invokes a method stubbed or mocked usingany_instance
. -
- (Object) any_number_of_times
Records the
any_number_of_times
message for playback against an instance that invokes a method stubbed or mocked usingany_instance
. -
- (Object) at_least
Records the
at_least
message for playback against an instance that invokes a method stubbed or mocked usingany_instance
. -
- (Object) at_most
Records the
at_most
message for playback against an instance that invokes a method stubbed or mocked usingany_instance
. -
- (Object) exactly
Records the
exactly
message for playback against an instance that invokes a method stubbed or mocked usingany_instance
. -
- (Object) never
Records the
never
message for playback against an instance that invokes a method stubbed or mocked usingany_instance
. -
- (Object) once
Records the
once
message for playback against an instance that invokes a method stubbed or mocked usingany_instance
. -
- (Object) times
Records the
times
message for playback against an instance that invokes a method stubbed or mocked usingany_instance
. -
- (Object) twice
Records the
twice
message for playback against an instance that invokes a method stubbed or mocked usingany_instance
. -
- (Object) with
Records the
with
message for playback against an instance that invokes a method stubbed or mocked usingany_instance
.
Class Method Details
+ (Object) record(method_name)
19 20 21 22 23 24 25 |
# File 'lib/rspec/mocks/any_instance/chain.rb', line 19 def self.record(method_name) class_eval(<<-EOM, __FILE__, __LINE__ + 1) def #{method_name}(*args, &block) record(:#{method_name}, *args, &block) end EOM end |
Instance Method Details
- (Object) and_call_original
Records the and_call_original
message for playback against an instance that
invokes a method stubbed or mocked using any_instance
.
31 |
# File 'lib/rspec/mocks/any_instance/chain.rb', line 31 record :and_call_original |
- (Object) and_raise
Records the and_raise
message for playback against an instance that
invokes a method stubbed or mocked using any_instance
.
28 |
# File 'lib/rspec/mocks/any_instance/chain.rb', line 28 record :and_raise |
- (Object) and_return
Records the and_return
message for playback against an instance that
invokes a method stubbed or mocked using any_instance
.
27 |
# File 'lib/rspec/mocks/any_instance/chain.rb', line 27 record :and_return |
- (Object) and_throw
Records the and_throw
message for playback against an instance that
invokes a method stubbed or mocked using any_instance
.
29 |
# File 'lib/rspec/mocks/any_instance/chain.rb', line 29 record :and_throw |
- (Object) and_yield
Records the and_yield
message for playback against an instance that
invokes a method stubbed or mocked using any_instance
.
30 |
# File 'lib/rspec/mocks/any_instance/chain.rb', line 30 record :and_yield |
- (Object) any_number_of_times
Records the any_number_of_times
message for playback against an instance that
invokes a method stubbed or mocked using any_instance
.
35 |
# File 'lib/rspec/mocks/any_instance/chain.rb', line 35 record :any_number_of_times |
- (Object) at_least
Records the at_least
message for playback against an instance that
invokes a method stubbed or mocked using any_instance
.
39 |
# File 'lib/rspec/mocks/any_instance/chain.rb', line 39 record :at_least |
- (Object) at_most
Records the at_most
message for playback against an instance that
invokes a method stubbed or mocked using any_instance
.
40 |
# File 'lib/rspec/mocks/any_instance/chain.rb', line 40 record :at_most |
- (Object) exactly
Records the exactly
message for playback against an instance that
invokes a method stubbed or mocked using any_instance
.
36 |
# File 'lib/rspec/mocks/any_instance/chain.rb', line 36 record :exactly |
- (Object) never
Records the never
message for playback against an instance that
invokes a method stubbed or mocked using any_instance
.
38 |
# File 'lib/rspec/mocks/any_instance/chain.rb', line 38 record :never |
- (Object) once
Records the once
message for playback against an instance that
invokes a method stubbed or mocked using any_instance
.
33 |
# File 'lib/rspec/mocks/any_instance/chain.rb', line 33 record :once |
- (Object) times
Records the times
message for playback against an instance that
invokes a method stubbed or mocked using any_instance
.
37 |
# File 'lib/rspec/mocks/any_instance/chain.rb', line 37 record :times |
- (Object) twice
Records the twice
message for playback against an instance that
invokes a method stubbed or mocked using any_instance
.
34 |
# File 'lib/rspec/mocks/any_instance/chain.rb', line 34 record :twice |
- (Object) with
Records the with
message for playback against an instance that
invokes a method stubbed or mocked using any_instance
.
32 |
# File 'lib/rspec/mocks/any_instance/chain.rb', line 32 record :with |