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