From a432023f176bc3bea53478bf6c20ae576ee49f61 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Mon, 30 Oct 2017 00:17:08 +0800 Subject: [PATCH] factory_bot: improve some headings --- factory_bot.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/factory_bot.md b/factory_bot.md index ed8a297bd..b3bb52bb8 100644 --- a/factory_bot.md +++ b/factory_bot.md @@ -38,15 +38,17 @@ See: [Defining factories](http://www.rubydoc.info/gems/factory_bot/file/GETTING_ ### Extra options +#### Custom class names + ```ruby -# Custom class names factory :user, class: 'User' do ··· end ``` +#### Aliases + ```ruby -# Aliases factory :user, aliases: [:author] do ··· end @@ -94,7 +96,7 @@ end ``` {: data-line="2,3"} -or: +#### or ```ruby factory :post do