Rails + FactoryGirl: What is the "evaluator" in after(:create) do |something, evaluator|? -


i've been using factorygirl while now, still don't know evaluator means in after create hook:

factory :products_color_with_variants   after(:create) |pc, evaluator|     pc.variants << factorygirl.create(:variant)   end end 

i've been using first argument block, object created. evaluator , can use for?

this can you. can access transient attributes it


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -