Sha256: 1672a6d5ef7e97fa9c6faa628035bbe5741e26f464ecb37d43e44a413f27cb74

Contents?: true

Size: 433 Bytes

Versions: 7436

Compression:

Stored size: 433 Bytes

Contents

module RSpec
  module Mocks
    module Matchers
      # @private
      class ExpectationCustomization
        attr_accessor :block

        def initialize(method_name, args, block)
          @method_name = method_name
          @args        = args
          @block       = block
        end

        def playback_onto(expectation)
          expectation.__send__(@method_name, *@args, &@block)
        end
      end
    end
  end
end

Version data entries

7,436 entries across 7,344 versions & 134 rubygems

Version Path
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/matchers/expectation_customization.rb
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/expectation_customization.rb
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/matchers/expectation_customization.rb
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/expectation_customization.rb
rspec-mocks-3.8.0 lib/rspec/mocks/matchers/expectation_customization.rb
cloudsmith-api-0.30.7 vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/expectation_customization.rb
opal-rspec-0.7.0.rc.2 rspec-mocks/upstream/lib/rspec/mocks/matchers/expectation_customization.rb
logstash-filter-device_detection-1.0.7-java vendor/bundle/jruby/1.9/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/expectation_customization.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/expectation_customization.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/expectation_customization.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.6.0/lib/rspec/mocks/matchers/expectation_customization.rb
tdiary-5.0.9 vendor/bundle/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/expectation_customization.rb
color_me_shop-1.0.0 vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/expectation_customization.rb
mrcooper-logstash-output-azuresearch-0.2.2 vendor/jruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/expectation_customization.rb
monero_wallet_gen-0.1.0 vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/expectation_customization.rb
vagrant-unbundled-2.1.1.0 vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/matchers/expectation_customization.rb
vagrant-unbundled-2.0.4.0 vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/matchers/expectation_customization.rb
sb_prime_table-0.1.1 vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/expectation_customization.rb
sb_prime_table-0.1.0 vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/expectation_customization.rb
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/expectation_customization.rb