Sha256: 4c5b7fa44ac6bda6815b19e92e16137dd6f3bb1c09b223fe33878f95c74971bc

Contents?: true

Size: 465 Bytes

Versions: 15

Compression:

Stored size: 465 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

each_sample do |fname|
  describe fname do
    before(:all) do
      @src = ZPNG::Image.load(fname)
      @dst = ZPNG::Image.new(@src.export)
    end

    it "should have equal width" do
      @src.width.should == @dst.width
    end

    it "should have equal width" do
      @src.height.should == @dst.height
    end

    it "should have equal data" do
      @src.should == @dst
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
zpng-0.4.5 spec/load_save_spec.rb
zpng-0.4.4 spec/load_save_spec.rb
zpng-0.4.3 spec/load_save_spec.rb
zpng-0.4.2 spec/load_save_spec.rb
zpng-0.4.1 spec/load_save_spec.rb
zpng-0.4.0 spec/load_save_spec.rb
zpng-0.3.4 spec/load_save_spec.rb
zpng-0.3.3 spec/load_save_spec.rb
zpng-0.3.2 spec/load_save_spec.rb
zpng-0.3.1 spec/load_save_spec.rb
zpng-0.3.0 spec/load_save_spec.rb
zpng-0.2.5 spec/load_save_spec.rb
zpng-0.2.4 spec/load_save_spec.rb
zpng-0.2.3 spec/load_save_spec.rb
zpng-0.2.2 spec/load_save_spec.rb