Carregar FactoryGirl no console Rails
Simples, mas raramente usado o suficiente para ser esquecido. $ rails c…[1] pry(main)> require ‘factory_girl’=> true[2] pry(main)> FactoryGirl.find_definitions…[3] pry(main)> FactoryGirl.create :my_thing Magia!
Continuar lendo