Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add test to verify PaperclipError raised when bad convert options are…

… provided for the thumbnail.
  • Loading branch information...
commit 4b98e8f145549f34e60d098b78991d24b29144f6 1 parent 39bc32c
@bjhess bjhess authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/thumbnail_test.rb
View
12 test/thumbnail_test.rb
@@ -128,6 +128,18 @@ class ThumbnailTest < Test::Unit::TestCase
dst = @thumb.make
assert_match /100x50/, `identify #{dst.path}`
end
+
+ context "redefined to have bad convert_options setting" do
+ setup do
+ @thumb = Paperclip::Thumbnail.new(@file, "100x50#", format=nil, whiny_thumbnails=true, convert_options="-this-aint-no-option")
+ end
+
+ should "error when trying to create the thumbnail" do
+ assert_raises(Paperclip::PaperclipError) do
+ @thumb.make
+ end
+ end
+ end
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.