Sha256: 10c57f863b5c7afd8d6194f5e04ee1842f26d80a3ea589a49d57101d3f7afb91
Contents?: true
Size: 761 Bytes
Versions: 7
Compression:
Stored size: 761 Bytes
Contents
# encoding: UTF-8 require File.expand_path('../../test_helper', __FILE__) class ImageSizeTest < MiniTest::Spec context "Image size parser" do setup do @base_dir = File.expand_path(File.join(File.dirname(__FILE__), '../fixtures/images')) @dimensions = [50, 67] end should "work for PNG24" do ImageSize.read(File.join(@base_dir, "size.png24")).should == @dimensions end should "work for PNG8" do ImageSize.read(File.join(@base_dir, "size.png8")).should == @dimensions end should "work for JPG" do ImageSize.read(File.join(@base_dir, "size.jpg")).should == @dimensions end should "work for GIF" do ImageSize.read(File.join(@base_dir, "size.gif")).should == @dimensions end end end
Version data entries
7 entries across 7 versions & 1 rubygems