Sha256: b38b4fd0645a04dd7260766354d7284d84f858946f91070ca1955e82983a8355

Contents?: true

Size: 511 Bytes

Versions: 23

Compression:

Stored size: 511 Bytes

Contents

module RSpec
  module Mocks
    module AnyInstance
      # @private
      class StubChainChain < StubChain

        # @private
        def initialize(*args, &block)
          record(:stub_chain, *args, &block)
        end

        private

        def invocation_order
          @invocation_order ||= {
            :stub_chain => [nil],
            :and_return => [:stub_chain],
            :and_raise => [:stub_chain],
            :and_yield => [:stub_chain]
          }
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 10 rubygems

Version Path
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rspec-mocks-2.13.0/lib/rspec/mocks/any_instance/stub_chain_chain.rb
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/rspec-mocks-2.11.3/lib/rspec/mocks/any_instance/stub_chain_chain.rb
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/rspec-mocks-2.11.3/lib/rspec/mocks/any_instance/stub_chain_chain.rb
sshp-0.0.2 vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb
sshp-0.0.1 vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb
rspec-mocks-2.13.1 lib/rspec/mocks/any_instance/stub_chain_chain.rb
vagrant-actionio-0.0.9 vendor/bundle/gems/rspec-mocks-2.13.0/lib/rspec/mocks/any_instance/stub_chain_chain.rb
rspec-mocks-2.13.0 lib/rspec/mocks/any_instance/stub_chain_chain.rb
remq-0.0.4 vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/any_instance/stub_chain_chain.rb
remq-0.0.3 vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/any_instance/stub_chain_chain.rb
rspec-mocks-2.12.2 lib/rspec/mocks/any_instance/stub_chain_chain.rb
rspec-mocks-2.12.1 lib/rspec/mocks/any_instance/stub_chain_chain.rb
rspec-mocks-2.12.0 lib/rspec/mocks/any_instance/stub_chain_chain.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/rspec-mocks-2.11.3/lib/rspec/mocks/any_instance/stub_chain_chain.rb
gem_repackager-0.1.0 support/gems/rspec-mocks-2.11.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb
rspec-mocks-2.11.3 lib/rspec/mocks/any_instance/stub_chain_chain.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/rspec-mocks-2.11.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb
rspec-mocks-2.11.2 lib/rspec/mocks/any_instance/stub_chain_chain.rb