Skip to content
This repository

A library for setting up Ruby objects as test data.

Octocat-spinner-32 features Convert to expect syntax January 18, 2013
Octocat-spinner-32 gemfiles Bump version to 4.4.0 February 11, 2014
Octocat-spinner-32 lib Bump version to 4.4.0 February 11, 2014
Octocat-spinner-32 spec Add FactoryGirl.lint to ensure all factories are valid February 07, 2014
Octocat-spinner-32 .autotest Remove whitespace [Gun.io WhitespaceBot] October 21, 2011
Octocat-spinner-32 .gitignore Ignore bin dir from bundler March 09, 2012
Octocat-spinner-32 .rspec Use rspec2 November 11, 2010
Octocat-spinner-32 .simplecov Clean up SimpleCov usage April 23, 2012
Octocat-spinner-32 .travis.yml Add Ruby 2.1.0 to .travis.yml February 09, 2014
Octocat-spinner-32 .yardopts Converted the contribution guidelines; updates to readme February 07, 2011
Octocat-spinner-32 Appraisals Update versions of Rails for Appraisal November 02, 2013
Octocat-spinner-32 CONTRIBUTION_GUIDELINES.md http => https January 12, 2012
Octocat-spinner-32 GETTING_STARTED.md minor doco updates to make it clear we are calling factory_girl methods February 26, 2014
Octocat-spinner-32 Gemfile Update dependency on ActiveRecord so it does not pull in 1.6.0 August 02, 2013
Octocat-spinner-32 Gemfile.lock Bump version to 4.4.0 February 11, 2014
Octocat-spinner-32 LICENSE Update copyright year to 2014 January 27, 2014
Octocat-spinner-32 NEWS Bump version to 4.4.0 February 11, 2014
Octocat-spinner-32 README.md Move away from FactoryGirl to factory_girl in docs January 29, 2014
Octocat-spinner-32 Rakefile Bump versions of ActiveRecord in Appraisal and fix default task June 14, 2013
Octocat-spinner-32 cucumber.yml Fixed issues with some attributes being skipped and added support for… September 15, 2009
Octocat-spinner-32 factory_girl.gemspec add license information to gemspec January 29, 2013
README.md

factory_girl Build Status Dependency Status Code Climate

factory_girl is a fixtures replacement with a straightforward definition syntax, support for multiple build strategies (saved instances, unsaved instances, attribute hashes, and stubbed objects), and support for multiple factories for the same class (user, admin_user, and so on), including factory inheritance.

If you want to use factory_girl with Rails, see factory_girl_rails.

Documentation

You should find the documentation for your version of factory_girl on Rubygems.

See GETTING_STARTED for information on defining and using factories.

Install

gem install factory_girl

or add the following line to Gemfile:

gem 'factory_girl'

and run bundle install from your shell.

Supported Ruby versions

The factory_girl 3.x+ series supports MRI Ruby 1.9. Additionally, factory_girl 3.6+ supports JRuby 1.6.7.2+ while running in 1.9 mode. See GETTING_STARTED for more information on configuring the JRuby environment.

For versions of Ruby prior to 1.9, please use factory_girl 2.x.

More Information

Contributing

Please see the contribution guidelines.

Credits

factory_girl was originally written by Joe Ferris and is now maintained by Josh Clayton. Many improvements and bugfixes were contributed by the open source community.

thoughtbot

factory_girl is maintained and funded by thoughtbot, inc

The names and logos for thoughtbot are trademarks of thoughtbot, inc.

License

factory_girl is Copyright © 2008-2014 Joe Ferris and thoughtbot. It is free software, and may be redistributed under the terms specified in the LICENSE file.

Something went wrong with that request. Please try again.