Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 71 lines (48 sloc) 2.259 kb
9bacd0c @joshuaclayton Report Travis status from master branch
joshuaclayton authored
1 # factory_girl [![Build Status](https://secure.travis-ci.org/thoughtbot/factory_girl.png)](http://travis-ci.org/thoughtbot/factory_girl?branch=master)
df67e90 change readme to markdown and add in credit and license info
Chad Pytel authored
2
3 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.
4
5 If you want to use factory_girl with Rails 3, see
30e13dd @weppos http => https
weppos authored
6 [factory_girl_rails](https://github.com/thoughtbot/factory_girl_rails).
3acd41d @jferris Extract examples out to a different file so that the readme people see o...
jferris authored
7
8 Documentation
9 -------------
10
30e13dd @weppos http => https
weppos authored
11 You should find the documentation for your version of factory_girl on [Rubygems](https://rubygems.org/gems/factory_girl).
3acd41d @jferris Extract examples out to a different file so that the readme people see o...
jferris authored
12
3dbbf4e @croaky make getting started link work
croaky authored
13 See [GETTING_STARTED](https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md) for information on defining and using factories.
df67e90 change readme to markdown and add in credit and license info
Chad Pytel authored
14
3292d63 @gmile More clear install message
gmile authored
15 Install
df67e90 change readme to markdown and add in credit and license info
Chad Pytel authored
16 --------
17
3f15c23 @mike-burns Clear up the language for pedantic people.
mike-burns authored
18 ```shell
3292d63 @gmile More clear install message
gmile authored
19 gem install factory_girl
20 ```
21 or add the following line to Gemfile:
8ad1cc6 @gabebw Fix syntax highlighting
gabebw authored
22
3292d63 @gmile More clear install message
gmile authored
23 ```ruby
24 gem 'factory_girl'
25 ```
3f15c23 @mike-burns Clear up the language for pedantic people.
mike-burns authored
26 and run `bundle install` from your shell.
df67e90 change readme to markdown and add in credit and license info
Chad Pytel authored
27
28 More Information
29 ----------------
30
30e13dd @weppos http => https
weppos authored
31 * [Rubygems](https://rubygems.org/gems/factory_girl)
df67e90 change readme to markdown and add in credit and license info
Chad Pytel authored
32 * [Mailing list](http://groups.google.com/group/factory_girl)
30e13dd @weppos http => https
weppos authored
33 * [Issues](https://github.com/thoughtbot/factory_girl/issues)
11a79a0 @weppos Update Giant Robots blog URL
weppos authored
34 * [GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS](http://robots.thoughtbot.com/)
df67e90 change readme to markdown and add in credit and license info
Chad Pytel authored
35
36 Contributing
37 ------------
38
30e13dd @weppos http => https
weppos authored
39 Please see the [contribution guidelines](https://github.com/thoughtbot/factory_girl/blob/master/CONTRIBUTION_GUIDELINES.md).
df67e90 change readme to markdown and add in credit and license info
Chad Pytel authored
40
41 Credits
42 -------
43
44 factory_girl was written by Joe Ferris with contributions from several authors, including:
45
46 * Alex Sharp
47 * Eugene Bolshakov
48 * Jon Yurek
49 * Josh Nichols
50 * Josh Owens
51 * Nate Sutton
1f0e2eb @joshuaclayton Attribution
joshuaclayton authored
52 * Josh Clayton
53 * Thomas Walpole
df67e90 change readme to markdown and add in credit and license info
Chad Pytel authored
54
55 The syntax layers are derived from software written by the following authors:
56
57 * Pete Yandell
58 * Rick Bradley
59 * Yossef Mendelssohn
60
61 ![thoughtbot](http://thoughtbot.com/images/tm/logo.png)
62
63 factory_girl is maintained and funded by [thoughtbot, inc](http://thoughtbot.com/community)
64
65 The names and logos for thoughtbot are trademarks of thoughtbot, inc.
66
67 License
68 -------
69
70 factory_girl is Copyright © 2008-2011 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.