Skip to content

Instantly share code, notes, and snippets.

@leedo
Created January 23, 2012 19:44
Show Gist options
  • Save leedo/1665177 to your computer and use it in GitHub Desktop.
Save leedo/1665177 to your computer and use it in GitHub Desktop.
def test_weird_formats
tif = Asset::Image.new(@odd_formats[:tif][:input], "rmagick")
assert_equal "jpg", tif.format
assert_equal "rmagick.jpg", tif.filename
bmp = Asset::Image.new(@odd_formats[:bmp][:input], "rmagick");
assert_equal "png", bmp.format
assert_equal "rmagick.png", bmp.filename
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment