diff --git a/GETTING_STARTED.md b/GETTING_STARTED.md index 79dbd9a..a14fdf9 100644 --- a/GETTING_STARTED.md +++ b/GETTING_STARTED.md @@ -173,8 +173,7 @@ end Aliases ------- - -Aliases allow you to use named associations more easily. +FactoryGirl allows you to define aliases to existing factories to make them easier to re-use. This could come in handy when, for example, your Post object has a author attribute that actually refers to an instance of a User class. While normally FactoryGirl can infer the factory name from the association name, in this case it will look for a author factory in vain. So, alias your user factory so it can be used under alias names. ```ruby factory :user, aliases: [:author, :commenter] do