Class: RSpec::Mocks::AnyInstance::NegativeExpectationChain Private
- Inherits:
-
ExpectationChain
- Object
- Chain
- ExpectationChain
- RSpec::Mocks::AnyInstance::NegativeExpectationChain
- Defined in:
- lib/rspec/mocks/any_instance/expectation_chain.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ NegativeExpectationChain
constructor
private
A new instance of NegativeExpectationChain.
Methods inherited from ExpectationChain
Methods inherited from Chain
#and_raise, #and_return, #and_throw, #and_yield, #any_number_of_times, #at_least, #at_most, #exactly, #never, #once, #times, #twice, #with
Constructor Details
#initialize(*args, &block) ⇒ NegativeExpectationChain
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of NegativeExpectationChain.
40 41 42 |
# File 'lib/rspec/mocks/any_instance/expectation_chain.rb', line 40 def initialize(*args, &block) super(:should_not_receive, *args, &block) end |