Class: Bogus::RegistersCreatedFakes

Inherits:
Object
  • Object
show all
Extended by:
Takes
Defined in:
lib/bogus/fakes/registers_created_fakes.rb

Instance Method Summary collapse

Methods included from Takes

takes

Instance Method Details

#create(name, opts = {}, &block) ⇒ Object



7
8
9
10
11
12
# File 'lib/bogus/fakes/registers_created_fakes.rb', line 7

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