Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment