Sha256: 62fdf9ec1bd227680dc8d04573889fee5d32d82a540fc70d543a5e3a3d4e72b8

Contents?: true

Size: 659 Bytes

Versions: 12

Compression:

Stored size: 659 Bytes

Contents

require 'spec_helper'

begin
  require 'chunky_png/rmagick'

  describe ChunkyPNG::RMagick do

    it "should import an image from RMagick correctly" do
      image = Magick::Image.read(resource_file('composited.png')).first
      canvas = ChunkyPNG::RMagick.import(image)
      expect(canvas).to eql reference_canvas('composited')
    end

    it "should export an image to RMagick correctly" do
      canvas = reference_canvas('composited')
      image  = ChunkyPNG::RMagick.export(canvas)
      image.format = 'PNG32'
      expect(canvas).to eql ChunkyPNG::Canvas.from_blob(image.to_blob)
    end
  end
rescue LoadError => e
  # skipping RMagick tests
end

Version data entries

12 entries across 11 versions & 3 rubygems

Version Path
chunky_png-1.3.11 spec/chunky_png/rmagick_spec.rb
chunky_png-1.3.10 spec/chunky_png/rmagick_spec.rb
chunky_png-1.3.9 spec/chunky_png/rmagick_spec.rb
arcabouco-0.2.13 vendor/bundle/gems/chunky_png-1.3.8/spec/chunky_png/rmagick_spec.rb
arcabouco-0.2.13 vendor/bundle/gems/chunky_png-1.3.6/spec/chunky_png/rmagick_spec.rb
chunky_png-1.3.8 spec/chunky_png/rmagick_spec.rb
second_step-0.1.2 secondstep-notify-1.0.0-osx/lib/ruby/lib/ruby/gems/2.2.0/gems/chunky_png-1.3.7/spec/chunky_png/rmagick_spec.rb
chunky_png-1.3.7 spec/chunky_png/rmagick_spec.rb
chunky_png-1.3.6 spec/chunky_png/rmagick_spec.rb
chunky_png-1.3.5 spec/chunky_png/rmagick_spec.rb
chunky_png-1.3.4 spec/chunky_png/rmagick_spec.rb
chunky_png-1.3.3 spec/chunky_png/rmagick_spec.rb