1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00

Mark as code for association strategy

This is a very small documentation fix for clarity.
This commit is contained in:
Masafumi Koba 2019-05-31 14:28:37 +09:00 committed by Alejandro Dustet
parent f82e40c8c5
commit 41b8ea8cfd

View file

@ -387,7 +387,7 @@ post.new_record? # => true
post.author.new_record? # => false
```
To not save the associated object, specify strategy: :build in the factory:
To not save the associated object, specify `strategy: :build` in the factory:
```ruby
FactoryBot.use_parent_strategy = false