Sha256: b0d64188135c3a2032fc1963f4644ba5e64440ab159e9161f176142b0018a7ad

Contents?: true

Size: 804 Bytes

Versions: 16

Compression:

Stored size: 804 Bytes

Contents

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

describe ZPNG::Metadata do
  # itxt.png contains all possible text chunks
  describe "itxt.png" do
    let!(:metadata){
      ZPNG::Image.load( File.join(SAMPLES_DIR, "itxt.png") ).metadata
    }
    it "should get all values" do
      metadata.size.should == 4
    end
    it "should not find not existing value" do
      metadata['foobar'].should be_nil
    end
    it "should find all existing values" do
      metadata['Title'].should == "PNG"
      metadata['Author'].should == "La plume de ma tante"
      metadata['Warning'].should == "Es is verboten, um diese Datei in das GIF-Bildformat\numzuwandeln.  Sie sind gevarnt worden."
      metadata['Description'].should =~ /Since POV-Ray does not direclty support/
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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