mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
Fix Markdown Syntax in GETTING STARTED.md
This commit is contained in:
parent
5a3247dd8c
commit
ca810767e7
1 changed files with 2 additions and 2 deletions
|
@ -510,7 +510,7 @@ create(:profile_with_languages, languages_count: 15).languages.length # 15
|
|||
|
||||
Polymorphic associations can be handled with traits:
|
||||
|
||||
```
|
||||
```ruby
|
||||
FactoryBot.define do
|
||||
factory :video
|
||||
factory :photo
|
||||
|
@ -531,7 +531,7 @@ end
|
|||
|
||||
This allows us to do:
|
||||
|
||||
```
|
||||
```ruby
|
||||
create(:comment)
|
||||
create(:comment, :for_video)
|
||||
create(:comment, :for_photo)
|
||||
|
|
Loading…
Reference in a new issue