method

invoke_consecutive_return_block

rspec latest stable - Class: Spec::Mocks::BaseExpectation
invoke_consecutive_return_block(*args, &block)
protected

No documentation available.

# File lib/spec/mocks/message_expectation.rb, line 182
      def invoke_consecutive_return_block(*args, &block)
        value = invoke_return_block(*args, &block)
        index = [@actual_received_count, value.size-1].min
        value[index]
      end