Skip to content

Instantly share code, notes, and snippets.

@kavu
Created December 31, 2009 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kavu/266705 to your computer and use it in GitHub Desktop.
Save kavu/266705 to your computer and use it in GitHub Desktop.
it 'should allow JPG images' do
photo = Photo.new :photo => fixture_file_upload('photos/chameleon.jpg', 'image/jpeg')
photo.stub!(:save_attached_files).and_return true
photo.save.should be_true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment