Skip to content

Instantly share code, notes, and snippets.

@raws
Created October 24, 2010 16:35
Show Gist options
  • Save raws/643660 to your computer and use it in GitHub Desktop.
Save raws/643660 to your computer and use it in GitHub Desktop.
require "test_helper"
module Chevalet
class ImageTest < ImageTestCase
%w(gif jpg png).each do |format|
test "validates a real #{format} image" do
image(format.to_sym) do |data|
image = Image.new(data)
assert image.send("#{format}?")
end
end
end
end # ImageTest
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment