Class: RubyOnAcid::ExampleFactory

Inherits:
MetaFactory show all
Defined in:
lib/rubyonacid/factories/example.rb

Overview

A preconfigured factory with all the bells and whistles. Use this if you want to get up and running quickly and don’t need to tweak the settings.

Instance Attribute Summary

Attributes inherited from MetaFactory

#factory_pool

Instance Method Summary collapse

Methods inherited from MetaFactory

#assign_factory, #get_unit, #reset_assignments

Methods inherited from Factory

#boolean, #choose, #get, #within

Constructor Details

#initializeExampleFactory

Returns a new instance of ExampleFactory.



10
11
12
13
# File 'lib/rubyonacid/factories/example.rb', line 10

def initialize
  super
  @factory_pool = create_factories
end