Sha256: 719ce005197c2da1191dfa5985b48fbbb594ccf2c8ce85a506a3def3be134035
Contents?: true
Size: 895 Bytes
Versions: 8
Compression:
Stored size: 895 Bytes
Contents
module RSpec module Mocks module AnyInstance # @api private class ExpectationChain < Chain def expectation_fulfilled? @expectation_fulfilled || constrained_to_any_of?(:never, :any_number_of_times) end def initialize(*args, &block) @expectation_fulfilled = false super end private def verify_invocation_order(rspec_method_name, *args, &block) end def create_message_expectation_on(instance) super do |proxy, expected_from| proxy.add_message_expectation(expected_from, *@expectation_args, &@expectation_block) end end def invocation_order @invocation_order ||= { :with => [nil], :and_return => [:with, nil], :and_raise => [:with, nil] } end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems