search for: test_should_be_invalid_without_file

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

2007 Aug 18
0
RSpec and acts_as_attachment
...guys, I''m getting a weird error when trying to test something like the following. It''s a model that is using acts_as_attachment but 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)...