spec/image_spec.rb in psd-1.3.3 vs spec/image_spec.rb in psd-1.4.0
- old
+ new
@@ -26,11 +26,11 @@
expect(@psd.image.pixel_data).to eq([ChunkyPNG::Color.rgba(0, 100, 200, 255)])
end
describe "as PNG" do
it "should produce a valid PNG object" do
- expect(@psd.image.to_png).to be_an_instance_of(ChunkyPNG::Image)
+ expect(@psd.image.to_png).to be_an_instance_of(ChunkyPNG::Canvas)
expect(@psd.image.to_png.width).to eq(1)
expect(@psd.image.to_png.height).to eq(1)
expect(
ChunkyPNG::Color.to_truecolor_alpha_bytes(@psd.image.to_png[0,0])
@@ -56,10 +56,10 @@
it "should produce a valid PNG object" do
@psd.options[:parse_layer_images] = true
@psd.parse!
png = @psd.tree.children.first.image.to_png
- expect(png).to be_an_instance_of(ChunkyPNG::Image)
+ expect(png).to be_an_instance_of(ChunkyPNG::Canvas)
expect(png.width).to eq(1)
expect(png.height).to eq(1)
expect(
ChunkyPNG::Color.to_truecolor_alpha_bytes(png[0,0])
).to eq([0, 100, 200, 255])
\ No newline at end of file