Sha256: d5aa515f9d03322361843f0df1a8f51500f97ebfa20c9e2d5f45a94979874e3a

Contents?: true

Size: 243 Bytes

Versions: 2

Compression:

Stored size: 243 Bytes

Contents

class Bogus::RegistersCreatedFakes
  extend Bogus::Takes

  takes :creates_fakes, :fake_registry

  def create(name, opts = {}, &block)
    fake = creates_fakes.create(name, opts, &block)
    fake_registry.store(name, fake)
    fake
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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