mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
#4 - added instructions for using the Github gem in a Rails 2.1 project
This commit is contained in:
parent
85b6c9ce7f
commit
37328b33ed
1 changed files with 7 additions and 0 deletions
|
@ -12,6 +12,13 @@ Github: "Page":http://github.com/thoughtbot/factory_girl/tree/master "Clone":git
|
|||
|
||||
Gem: <pre>gem install thoughtbot-factory_girl --source http://gems.github.com</pre>
|
||||
|
||||
Note: if you install factory_girl using the gem from Github, you'll need this
|
||||
in your environment.rb if you want to use Rails 2.1's dependency manager:
|
||||
|
||||
config.gem "thoughtbot-factory_girl",
|
||||
:lib => "factory_girl",
|
||||
:source => "http://gems.github.com"
|
||||
|
||||
h2. Defining factories
|
||||
|
||||
<pre><code># This will guess the User class
|
||||
|
|
Loading…
Reference in a new issue