Sha256: dc5be549a3ba727f35d4e3708ab921ff98c79a91162fa480492eb2c8ea1cceee

Contents?: true

Size: 674 Bytes

Versions: 7231

Compression:

Stored size: 674 Bytes

Contents

module RSpec
  module Mocks
    module AnyInstance
      # @private
      class ExpectChainChain < StubChain
        def initialize(*args)
          super
          @expectation_fulfilled = false
        end

        def expectation_fulfilled?
          @expectation_fulfilled
        end

        def playback!(instance)
          super.tap { @expectation_fulfilled = true }
        end

      private

        def create_message_expectation_on(instance)
          ::RSpec::Mocks::ExpectChain.expect_chain_on(instance, *@expectation_args, &@expectation_block)
        end

        def invocation_order
          EmptyInvocationOrder
        end
      end
    end
  end
end

Version data entries

7,231 entries across 7,156 versions & 101 rubygems

Version Path
ruby-scheduler-0.1.2 vendor/ruby/2.6.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb
ruby-scheduler-0.1.0 vendor/ruby/2.6.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb
cloudsmith-api-0.49.21 vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb
cloudsmith-api-0.49.15 vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb
cloudsmith-api-0.49.13 vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb
cloudsmith-api-0.49.9 vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb
mdap-0.1.0 vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb
rspec-mocks-diag-3.9.1.1 lib/rspec/mocks/any_instance/expect_chain_chain.rb
husc-0.2.1 vendor/bundle/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb
husc-0.2.0 vendor/bundle/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb
husc-0.1.1 vendor/bundle/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb
husc-0.1.0 vendor/bundle/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb
rspec-mocks-3.9.1 lib/rspec/mocks/any_instance/expect_chain_chain.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rspec-mocks-3.8.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rspec-mocks-3.8.2/lib/rspec/mocks/any_instance/expect_chain_chain.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/expect_chain_chain.rb
tdiary-5.1.0 vendor/bundle/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/expect_chain_chain.rb
spec_fill-0.1.2 vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/expect_chain_chain.rb