Sha256: 89cc36d0fbcb6d8b4cca51d0cc30b1c0ef268b95f6a7c1936014e3359c5fef61
Contents?: true
Size: 694 Bytes
Versions: 21
Compression:
Stored size: 694 Bytes
Contents
require 'spec_helper' describe ChunkyPNG::Canvas do describe '.from_rgb_stream' do it "should load an image correctly from a datastream" do File.open(resource_file('pixelstream.rgb')) do |stream| matrix = ChunkyPNG::Canvas.from_rgb_stream(240, 180, stream) matrix.should == reference_canvas('pixelstream_reference') end end end describe '.from_rgba_stream' do it "should load an image correctly from a datastream" do File.open(resource_file('pixelstream.rgba')) do |stream| matrix = ChunkyPNG::Canvas.from_rgba_stream(240, 180, stream) matrix.should == reference_canvas('pixelstream_reference') end end end end
Version data entries
21 entries across 20 versions & 3 rubygems