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
Post a Comment