D'oh, I got it.......
The validation is indeed -> validates_presence_of :image
to the model add -> image_accessor :image, (which is the provided reader/writer)
to the factory create the file that you'd like to upload -> image File.new("spec/assets/images/sample_rails.png")
run the tests and dragonfly will figure it out. Thanks for your help!!
On Saturday, June 9, 2012 4:59:27 PM UTC+3, bertly_the_coder wrote:
On Saturday, June 9, 2012 4:59:27 PM UTC+3, bertly_the_coder wrote:
On Saturday, June 9, 2012 4:59:27 PM UTC+3, bertly_the_coder wrote:
On Saturday, June 9, 2012 4:59:27 PM UTC+3, bertly_the_coder wrote: