Fix documentation to reference build_stubbed instead of stub

This commit is contained in:
Joshua Clayton 2011-09-01 19:22:41 -03:00
parent fa5095c555
commit 63458eee46
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ factory_girl supports several different build strategies: build, create, attribu
attrs = FactoryGirl.attributes_for(:user)
# Returns an object with all defined attributes stubbed out
stub = FactoryGirl.stub(:user)
stub = FactoryGirl.build_stubbed(:user)
No matter which strategy is used, it's possible to override the defined attributes by passing a hash: