Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/technicalpickles/factory_girl_on_rails
Some minor conveniences for using factory_girl on a Rails project
https://github.com/technicalpickles/factory_girl_on_rails
Last synced: 3 months ago
JSON representation
Some minor conveniences for using factory_girl on a Rails project
- Host: GitHub
- URL: https://github.com/technicalpickles/factory_girl_on_rails
- Owner: technicalpickles
- License: mit
- Created: 2008-08-12T16:23:59.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2009-02-15T05:50:59.000Z (almost 16 years ago)
- Last Synced: 2023-04-09T06:06:52.204Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 84 KB
- Stars: 34
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: MIT-LICENSE
Awesome Lists containing this project
README
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/factoriesInstalling
==========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