public
Description: Some minor conveniences for using factory_girl on a Rails project
Homepage:
Clone URL: git://github.com/technicalpickles/factory_girl_on_rails.git
100644 37 lines (20 sloc) 1.09 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
factory_girl_on_rails
=====================
 
THIS PLUGIN IS DEPRECATED AS OF FEBURARY 15, 2009: factory_girl now automatically loads factories, and it's trivial to create factory definitions by hand, so there's no need for this plugin.
 
factory_girl_on_rails provides some minor creature comforts for using factory_girl on a Rails project:
 
 * Automatically load factories in RAILS_ROOT/test/factories
 * A generator for putting new factories in RAILS_ROOT/test/factories
 
 
Installing
==========
 
    script/plugin install git://github.com/technicalpickles/factory_girl_on_rails.git
 
Example
=======
 
After installing this plugin, you just start using factories in RAILS_ROOT/test/factories.
 
As a convenience, a factory generator is provided:
 
`./script/generate factory account`
 
    creates an Account factory: test/factories/account_factory.rb
 
`./script/generate factory post title:string body:text published:boolean`
 
    creates a Post factory with a string title, text body, and published flag.
 
 
Copyright
=========
 
Copyright (c) 2008 Josh Nichols, released under the MIT license