Sha256: 2e607e794e4ae2ba9ac26a5ca6cd8fedda5b245085e44307793aa57152db9a1c

Contents?: true

Size: 313 Bytes

Versions: 8

Compression:

Stored size: 313 Bytes

Contents

module Bogus
  class RecordsDoubleInteractions
    extend Takes

    takes :doubled_interactions, :fake_registry

    def record(object, method_name, args, &block)
      fake_name = fake_registry.name(object)
      doubled_interactions.record(fake_name, method_name, *args, &block) if fake_name
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bogus-0.1.7 lib/bogus/contracts/records_double_interactions.rb
bogus-0.1.6 lib/bogus/contracts/records_double_interactions.rb
bogus-0.1.5 lib/bogus/contracts/records_double_interactions.rb
bogus-0.1.4 lib/bogus/contracts/records_double_interactions.rb
bogus-0.1.3 lib/bogus/records_double_interactions.rb
bogus-0.1.2 lib/bogus/records_double_interactions.rb
bogus-0.1.1 lib/bogus/records_double_interactions.rb
bogus-0.1.0 lib/bogus/records_double_interactions.rb