search for: set_uploaded_file

Displaying 1 result from an estimated 1 matches for "set_uploaded_file".

2006 Apr 01
2
ActiveRecord callbacks not called
Hi, there must be something wrong somewhere in my unit test because there''s a model I can''t have any callback executed on. In my unit test I do @image = Image.new @image.set_uploaded_file({:file => uploaded_file("pic1.jpg","image/jpeg","article-picture.jpg"), :article_id => @article.id, :title => ''Titre test'' }) breakpoint assert @image.save When breakpointing, and trying @image.save manually I get a...