Move away from FactoryGirl to factory_girl in docs

Change any references of FactoryGirl to factory_girl for consistency.
This commit is contained in:
Damian Galarza 2014-01-24 12:02:17 -05:00 committed by Joshua Clayton
parent e5d8a6a6fc
commit fea0ad12d9
2 changed files with 8 additions and 8 deletions

View File

@ -16,7 +16,7 @@ If you're *not* using Rails, you'll just have to change the required version of
gem "factory_girl", "~> 4.0"
```
JRuby users: FactoryGirl works with JRuby starting with 1.6.7.2 (latest stable, as per July 2012).
JRuby users: factory_girl works with JRuby starting with 1.6.7.2 (latest stable, as per July 2012).
JRuby has to be used in 1.9 mode, for that, use JRUBY_OPTS environment variable:
```bash
@ -58,7 +58,7 @@ class MiniTest::Rails::ActiveSupport::TestCase
end
```
If you do not include `FactoryGirl::Syntax::Methods` in your test suite, then all FactoryGirl methods will need to be prefaced with `FactoryGirl`.
If you do not include `FactoryGirl::Syntax::Methods` in your test suite, then all factory_girl methods will need to be prefaced with `FactoryGirl`.
Defining factories
------------------
@ -217,8 +217,8 @@ Static and dynamic attributes can be ignored. Ignored attributes will be ignored
within attributes\_for and won't be set on the model, even if the attribute
exists or you attempt to override it.
Within FactoryGirl's dynamic attributes, you can access ignored attributes as
you would expect. If you need to access the evaluator in a FactoryGirl callback,
Within factory_girl's dynamic attributes, you can access ignored attributes as
you would expect. If you need to access the evaluator in a factory_girl callback,
you'll need to declare a second block argument (for the evaluator) and access
ignored attributes from there.
@ -552,7 +552,7 @@ factory :user do
end
```
Traits can also be passed in as a list of symbols when you construct an instance from FactoryGirl.
Traits can also be passed in as a list of symbols when you construct an instance from factory_girl.
```ruby
factory :user do
@ -921,7 +921,7 @@ build(:user)
User.new('value')
```
This prevents duplicate assignment; in versions of FactoryGirl before 4.0, it
This prevents duplicate assignment; in versions of factory_girl before 4.0, it
would run this:
```ruby

View File

@ -28,12 +28,12 @@ and run `bundle install` from your shell.
Supported Ruby versions
-----------------------
The FactoryGirl 3.x+ series supports MRI Ruby 1.9. Additionally, FactoryGirl
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](https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md)
for more information on configuring the JRuby environment.
For versions of Ruby prior to 1.9, please use FactoryGirl 2.x.
For versions of Ruby prior to 1.9, please use factory_girl 2.x.
More Information
----------------