Class: RubyOnAcid::ExampleFactory
- Inherits:
-
MetaFactory
- Object
- Factory
- MetaFactory
- RubyOnAcid::ExampleFactory
- 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
Instance Method Summary collapse
-
#initialize ⇒ ExampleFactory
constructor
A new instance of ExampleFactory.
Methods inherited from MetaFactory
#assign_factory, #get_unit, #reset_assignments
Methods inherited from Factory
#boolean, #choose, #get, #within
Constructor Details
#initialize ⇒ ExampleFactory
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 |