Sha256: 1672a6d5ef7e97fa9c6faa628035bbe5741e26f464ecb37d43e44a413f27cb74

Contents?: true

Size: 433 Bytes

Versions: 7106

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,106 entries across 7,015 versions & 131 rubygems

Version Path
opal-rspec-0.5.0 rspec-mocks/lib/rspec/mocks/matchers/expectation_customization.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/rspec-mocks-3.1.3/lib/rspec/mocks/matchers/expectation_customization.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/logstash-codec-json-2.0.3/vendor/gems/rspec-mocks-3.1.3/lib/rspec/mocks/matchers/expectation_customization.rb
logstash-codec-json-2.0.3 vendor/gems/rspec-mocks-3.1.3/lib/rspec/mocks/matchers/expectation_customization.rb
rspec-mocks-3.4.0 lib/rspec/mocks/matchers/expectation_customization.rb
swift-pyrite-0.1.1 vendor/bundle/ruby/2.0.0/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/expectation_customization.rb
swift-pyrite-0.1.0 vendor/bundle/ruby/2.0.0/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/expectation_customization.rb
suzuko-0.1.8 vendor/bundle/ruby/2.0.0/gems/rspec-mocks-3.2.1/lib/rspec/mocks/matchers/expectation_customization.rb
suzuko-0.1.7 vendor/bundle/ruby/2.0.0/gems/rspec-mocks-3.2.1/lib/rspec/mocks/matchers/expectation_customization.rb
opal-rspec-0.5.0.beta3 rspec-mocks/lib/rspec/mocks/matchers/expectation_customization.rb
logstash-input-beats-0.9.2 vendor/jruby/1.9/gems/rspec-mocks-3.1.3/lib/rspec/mocks/matchers/expectation_customization.rb
logstash-input-beats-0.9.1 vendor/jruby/1.9/gems/rspec-mocks-3.1.3/lib/rspec/mocks/matchers/expectation_customization.rb
mastermind_adeybee-0.1.4 vendor/bundle/ruby/2.2.0/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/expectation_customization.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/expectation_customization.rb
mastermind_adeybee-0.1.3 vendor/bundle/ruby/2.2.0/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/expectation_customization.rb
mastermind_adeybee-0.1.2 vendor/bundle/ruby/2.2.0/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/expectation_customization.rb
mastermind_adeybee-0.1.1 vendor/bundle/ruby/2.2.0/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/expectation_customization.rb
sublimetheme-1.0.1 path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/expectation_customization.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/expectation_customization.rb
sublimetheme-1.0.0 path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/expectation_customization.rb