Sha256: 1672a6d5ef7e97fa9c6faa628035bbe5741e26f464ecb37d43e44a413f27cb74

Contents?: true

Size: 433 Bytes

Versions: 7105

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,105 entries across 7,014 versions & 131 rubygems

Version Path
cybrid_api_id_ruby-0.123.2 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_bank_ruby-0.123.2 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_organization_ruby-0.123.2 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_bank_ruby-0.122.72 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_organization_ruby-0.122.72 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_id_ruby-0.122.72 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_bank_ruby-0.122.71 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_id_ruby-0.122.71 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_organization_ruby-0.122.71 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_bank_ruby-0.122.70 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_organization_ruby-0.122.70 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_id_ruby-0.122.70 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_bank_ruby-0.122.69 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_id_ruby-0.122.69 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_organization_ruby-0.122.69 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_organization_ruby-0.122.68 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_bank_ruby-0.122.68 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_id_ruby-0.122.68 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_bank_ruby-0.122.67 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb
cybrid_api_organization_ruby-0.122.67 vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.2/lib/rspec/mocks/matchers/expectation_customization.rb