Sha256: a55f3d74883374a1970bdbdb7bb7e6c1ab1b8e5ebf30dc45d7d9038a4c7d446d

Contents?: true

Size: 695 Bytes

Versions: 5

Compression:

Stored size: 695 Bytes

Contents

RSpec.describe Magick::ImageList do
  describe 'images_from_imagelist' do
    it 'works with identical instances' do
      expect do
        img = Magick::Image.new(1, 1)
        list = described_class.new
        list << img << img
        res = list.append(false)
        expect(res.columns).to eq(2)
        expect(res.rows).to eq(1)
      end.not_to raise_error

      expect do
        img = Magick::Image.new(1, 1)
        img2 = Magick::Image.new(3, 3)
        list = described_class.new
        list.concat([img, img2, img, img2, img])
        res = list.append(false)
        expect(res.columns).to eq(9)
        expect(res.rows).to eq(3)
      end.not_to raise_error
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rmagick-4.1.0.rc2 spec/rmagick/ImageList1_spec.rb
rmagick-4.1.0.rc1 spec/rmagick/ImageList1_spec.rb
rmagick-4.0.0 spec/rmagick/ImageList1_spec.rb
rmagick-3.2.0 spec/rmagick/ImageList1_spec.rb
rmagick-3.1.0 spec/rmagick/ImageList1_spec.rb