Sha256: 30c2ccf7529118c0c24d528696d83078010afa3f07a46dde8e8235fdba4cbba5

Contents?: true

Size: 363 Bytes

Versions: 2

Compression:

Stored size: 363 Bytes

Contents

class Bogus::Double < BasicObject
  extend ::Bogus::Takes
  takes :object, :double, :verifies_stub_definition, :records_double_interactions

  def method_missing(name, *args, &block)
    @verifies_stub_definition.verify!(@object, name, args)
    @records_double_interactions.record(@object, name, args, &block)
    @double.__send__(name, *args, &block)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bogus-0.0.2 lib/bogus/double.rb
bogus-0.0.1 lib/bogus/double.rb