1
0
Fork 0
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:
Harold Giménez 2010-05-08 10:25:24 -04:00
parent 5a87af27fa
commit bc5fa83941

View file

@ -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