↓ Archives ↓

Posts Tagged → factory girl

Rails3: Factory girl and file uploads

Our experience so far with rails 3 has been pretty good. Some of the modules and internals of rails were renamed, but so far we haven’t experienced anything that changed drastically. Most of the stuff still have some parallelisms.

ActionController::TestProcess is now ActionDispatch::TestProcess

We had a model with a paperclip attachment, which we required the presence of. In order to specify that in our spec/support/factories.rb, we just had to do the following: