Sha256: 0c315a0e6ab5d1d951aacf3cf43bf20d305c73fa85ee96071cca52ff1d2b7297

Contents?: true

Size: 699 Bytes

Versions: 11

Compression:

Stored size: 699 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 = Magick::ImageList.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 = Magick::ImageList.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

11 entries across 11 versions & 3 rubygems

Version Path
rmagick-3.0.0 spec/rmagick/ImageList1_spec.rb
rmagick-windows-2.16.5 spec/rmagick/ImageList1_spec.rb
rmagick-windows-2.16.4 spec/rmagick/ImageList1_spec.rb
rmagick-windows-2.16.3 spec/rmagick/ImageList1_spec.rb
rmagick-windows-2.16.2 spec/rmagick/ImageList1_spec.rb
rmagick-windows-2.16.1 spec/rmagick/ImageList1_spec.rb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/rmagick-2.16.0/spec/rmagick/ImageList1_spec.rb
rmagick-2.16.0 spec/rmagick/ImageList1_spec.rb
rmagick-2.15.4 spec/rmagick/ImageList1_spec.rb
rmagick-2.15.3 spec/rmagick/ImageList1_spec.rb
rmagick-2.15.2 spec/rmagick/ImageList1_spec.rb