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

Version Path
spontaneous-0.2.0.alpha7 test/unit/test_image_size.rb
spontaneous-0.2.0.alpha6 test/unit/test_image_size.rb
spontaneous-0.2.0.alpha5 test/unit/test_image_size.rb
spontaneous-0.2.0.alpha4 test/unit/test_image_size.rb
spontaneous-0.2.0.alpha3 test/unit/test_image_size.rb
spontaneous-0.2.0.alpha2 test/unit/test_image_size.rb
spontaneous-0.2.0.alpha1 test/unit/test_image_size.rb