search for: create_user_fil

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

Did you mean: create_user_file
2007 Aug 18
0
RSpec and acts_as_attachment
...the weird thing is the equivalent Test::Unit case passes. Does anyone have any ideas? Best, Dave # it was a Test::Unit case first def test_should_be_invalid_without_file UserFile.any_instance.expects(:with_image).never assert_no_difference UserFile, :count do user_file = create_user_file :uploaded_data => nil assert user_file.errors.on(:filename) assert user_file.errors.on(:size) assert user_file.errors.on(:content_type) end end # Converting the above to the following spec it ''should be invalid without file'' do @user_fi...