mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
Fix minor "bug" on readme example
This commit is contained in:
parent
5a87af27fa
commit
bc5fa83941
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ The behavior of the association method varies depending on the build strategy us
|
|||
post.author.new_record # => false
|
||||
|
||||
# Builds and saves a User, and then builds but does not save a Post
|
||||
Factory.build(:post)
|
||||
post = Factory.build(:post)
|
||||
post.new_record? # => true
|
||||
post.author.new_record # => false
|
||||
|
||||
|
|
Loading…
Reference in a new issue