Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Makes FactoryGirl easy and automated. deep_* methods for automating FactoryGirl creation with required association trees and small tweaks, and a nice flexible FactoryGirl factories code generator.
Ruby

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
.gitignore
LICENSE
README.md
Rakefile
stepford.gemspec

README.md

Stepford

Setup

In your Rails 3+ project, add this to your Gemfile:

gem 'stepford', :git => 'git://github.com/garysweaver/stepford.git'

Then run:

bundle install

Usage

Factory Girl

To automatically generate factories for Factory Girl from models, type this at command-line:

bundle exec stepford factories

That will create a test/factories directory and put a some_model.rb for each model into it with a starter FactoryGirl factory definition that may or may not work for you.

Or, to generate a single file with all factories in spec/factories.rb, you'd use:

bundle exec stepford factories --single --path spec

Or it will figure it out yourself that you want a single file if the path ends in .rb:

bundle exec stepford factories --path spec/support/factories.rb

License

Copyright (c) 2012 Gary S. Weaver, released under the MIT license.

Something went wrong with that request. Please try again.