Sha256: 31386fec8d1ffb8da21f2a1d7ae38b9cafbe93cca84ee7fb7e4cef8c5b9d6343
Contents?: true
Size: 637 Bytes
Versions: 6
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
6 entries across 6 versions & 1 rubygems