mardi 3 mars 2015

Rspec object not saving till after page visit

FactoryGirl.define do


factory :video_game do


end


end


and the call to make it is


let(:video_game){FactoryGirl.create :video_game}


When I pry into the test. The object is not made in the db at the start of the test but until after I visit the page or call video_game.save


Aucun commentaire:

Enregistrer un commentaire