minor doco updates to make it clear we are calling factory_girl methods

This commit is contained in:
leriksen 2014-02-26 23:00:42 +11:00 committed by Joshua Clayton
parent 7f31ba9239
commit 4f8a9a0020
1 changed files with 2 additions and 2 deletions

View File

@ -406,7 +406,7 @@ Sequences
---------
Unique values in a specific format (for example, e-mail addresses) can be
generated using sequences. Sequences are defined by calling sequence in a
generated using sequences. Sequences are defined by calling `sequence` in a
definition block, and values in a sequence are generated by calling
`generate`:
@ -889,7 +889,7 @@ reassigned after your object has been instantiated, you'll want to `ignore` them
Although factory_girl is written to work with ActiveRecord out of the box, it
can also work with any Ruby class. For maximum compatibiltiy with ActiveRecord,
the default initializer builds all instances by calling new on your build class
the default initializer builds all instances by calling `new` on your build class
without any arguments. It then calls attribute writer methods to assign all the
attribute values. While that works fine for ActiveRecord, it actually doesn't
work for almost any other Ruby class.