Permalink
Browse files

added a failing test, which reproduces http://github.com/probablycore…

  • Loading branch information...
1 parent 4a57cc9 commit c47934dc36743bbb009104089577a019aa1e953c @hcatlin hcatlin committed Aug 2, 2010
Showing with 11 additions and 0 deletions.
  1. +11 −0 test/image_test.rb
View
@@ -169,6 +169,17 @@ def test_previous_tempfile_deleted_after_format
assert !File.exist?(before)
image.destroy!
end
+
+ def test_bad_method_bug
+ image = Image.from_file(TIFF_IMAGE_PATH)
+ begin
+ image.to_blog
+ assert false
+ rescue MiniMagick::Error
+ assert true
+ end
+ image.to_blob
+ end
# def test_mini_magick_error_when_referencing_not_existing_page
# image = Image.from_file(ANIMATION_PATH)

0 comments on commit c47934d

Please sign in to comment.