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:
parent
f82e40c8c5
commit
41b8ea8cfd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue