Browse files

update README for rails 3

  • Loading branch information...
Chad Pytel
Chad Pytel committed Jun 11, 2010
1 parent f3366b6 commit 20319bc47738d26898ca31c953ba759ee9591ddd
Showing with 4 additions and 5 deletions.
  1. +4 −5 README.rdoc
@@ -2,18 +2,17 @@
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 3, use the factory_girl_rails gem, not this one.
+If you want to use factory_girl with Rails versions prior to Rails 3, use version 1.2.4.
== Download
gem install factory_girl
-If you want to use Rails 2.1+'s dependency manager you'll need this in your
-environment.rb file:
- config.gem "factory_girl"
== Defining factories
Each factory has a name and a set of attributes. The name is used to guess the class of the object by default, but it's possible to explicitly specify it:

0 comments on commit 20319bc

Please sign in to comment.