Factory Girl: can one reopen factory definitions and complete them? Factory Girl: can one reopen factory definitions and complete them? ruby-on-rails ruby-on-rails

Factory Girl: can one reopen factory definitions and complete them?


Ups... seems I found the answer. Next time, have to check the documentation a bit furtherer...Here's the answer for anyone interested:

# external defFactoryGirl.define do factory :user do   email "somebody@somebodysworld.com" endend# proj defFactoryGirl.modify do  factory :user do    password "qwerty"  endend