Sha256: bdc2948b132a07247c3ce12805909bfaa52d82365cb9de5dbb2e401ddf3785e4
Contents?: true
Size: 692 Bytes
Versions: 1
Compression:
Stored size: 692 Bytes
Contents
require 'spec_helper' describe Riiif::ImagesController do routes { Riiif::Engine.routes } it "should send images to the service" do image = double expect(Riiif::Image).to receive(:new).with('abcd1234').and_return(image) expect(image).to receive(:render).with("region" => 'full', "size" => 'full', "rotation" => '0', "quality" => 'native', "format" => 'jpg').and_return("IMAGEDATA") get :show, id: 'abcd1234', action: "show", region: 'full', size: 'full', rotation: '0', quality: 'native', format: 'jpg' expect(response).to be_successful expect(response.body).to eq 'IMAGEDATA' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
riiif-0.0.1 | spec/controllers/images_controller_spec.rb |