spec/models/riiif/image_spec.rb in riiif-1.7.1 vs spec/models/riiif/image_spec.rb in riiif-2.0.0.beta1

- old
+ new

@@ -13,14 +13,17 @@ Riiif::Image.cache.clear end describe 'happy path' do before do - expect(subject.file).to receive(:execute) - .with("convert -quality 85 -sampling-factor 4:2:0 -strip #{filename} jpg:-") - .and_return('imagedata') + allow(image.info_service).to receive(:call).and_return({}) end + it 'renders' do + expect(Riiif::CommandRunner).to receive(:execute) + .with("convert -quality 85 -sampling-factor 4:2:0 -strip #{filename} jpg:-") + .and_return('imagedata') + expect(subject.render('size' => 'full', format: 'jpg')).to eq 'imagedata' end end it 'is able to override the file used for the Image' do