Sha256: 287927fbeead161e6d52e93dd3c2a12df3ad471f792992df69394104364beac8

Contents?: true

Size: 637 Bytes

Versions: 8

Compression:

Stored size: 637 Bytes

Contents

RSpec.describe Magick::Image, '#dispatch' do

  let(:img) { Magick::Image.read(IMAGES_DIR+'/Button_0.gif').first }

  it 'expects exactly 5 or 6 arguments' do
    expect { img.dispatch }.to raise_error(ArgumentError)
    expect { img.dispatch(0) }.to raise_error(ArgumentError)
    expect { img.dispatch(0, 0) }.to raise_error(ArgumentError)
    expect { img.dispatch(0, 0, img.columns) }.to raise_error(ArgumentError)
    expect do
      img.dispatch(0, 0, img.columns, img.rows)
    end.to raise_error(ArgumentError)
    expect do
      img.dispatch(0, 0, 20, 20, 'RGBA', false, false)
    end.to raise_error(ArgumentError)
  end

end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
rmagick-windows-2.16.5 spec/rmagick/image/dispatch_spec.rb
rmagick-windows-2.16.4 spec/rmagick/image/dispatch_spec.rb
rmagick-windows-2.16.3 spec/rmagick/image/dispatch_spec.rb
rmagick-windows-2.16.2 spec/rmagick/image/dispatch_spec.rb
rmagick-windows-2.16.1 spec/rmagick/image/dispatch_spec.rb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/rmagick-2.16.0/spec/rmagick/image/dispatch_spec.rb
rmagick-2.16.0 spec/rmagick/image/dispatch_spec.rb
rmagick-2.15.4 spec/rmagick/image/dispatch_spec.rb