Sha256: caf19a6953e151943c5cd452ff229cc73033875aaf838523591bffb640c7429b
Contents?: true
Size: 417 Bytes
Versions: 6
Compression:
Stored size: 417 Bytes
Contents
RSpec.describe Magick::Image, '#from_blob' do let(:img) { Magick::Image.read(IMAGES_DIR + '/Button_0.gif').first } let(:blob) { img.to_blob } it 'returns an image equal to the original' do expect(blob).to be_instance_of(String) res = Magick::Image.from_blob(blob) expect(res).to be_instance_of(Array) expect(res.first).to be_instance_of(Magick::Image) expect(res.first).to eq img end end
Version data entries
6 entries across 6 versions & 1 rubygems