spec/models/image_spec.rb in riiif-0.1.0 vs spec/models/image_spec.rb in riiif-0.2.0
- old
+ new
@@ -33,11 +33,11 @@
context "using HTTPFileResolver" do
before do
Riiif::Image.file_resolver = Riiif::HTTPFileResolver.new
Riiif::Image.file_resolver.id_to_uri = lambda do |id|
- "http://upload.wikimedia.org/wikipedia/commons/thumb/a/a4/#{id}.jpg/600px-#{id}.jpg"
+ "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a4/#{id}.jpg/600px-#{id}.jpg"
end
end
after do
Riiif::Image.file_resolver = Riiif::FileSystemFileResolver.new
end
@@ -127,12 +127,12 @@
expect { subject.render(rotation: '150x', format: 'png') }.to raise_error Riiif::InvalidAttributeError
end
end
describe "quality" do
- it "should return the original when specifing native" do
+ it "returns the original when specifing default" do
expect(subject.image).to receive(:execute).with("convert #{filename} png:-")
- subject.render(quality: 'native', format: 'png')
+ subject.render(quality: 'default', format: 'png')
end
it "should return the original when specifing color" do
expect(subject.image).to receive(:execute).with("convert #{filename} png:-")
subject.render(quality: 'color', format: 'png')
end