spec/derivatives/multires_image_spec.rb in ddr-models-3.0.0.beta.10 vs spec/derivatives/multires_image_spec.rb in ddr-models-3.0.0.beta.11

- old
+ new

@@ -19,12 +19,18 @@ before { allow(object).to receive(:content_type) { 'image/tiff' } } it "should be generatable" do expect(subject.generatable?(object)).to be_truthy end end - context 'content is not a tiff image' do + context 'content is a jpeg image' do before { allow(object).to receive(:content_type) { 'image/jpeg' } } + it "should be generatable" do + expect(subject.generatable?(object)).to be_truthy + end + end + context 'content is neither a tiff nor a jpeg image' do + before { allow(object).to receive(:content_type) { 'image/gif' } } it "should not be generatable" do expect(subject.generatable?(object)).to be_falsey end end end @@ -43,6 +49,6 @@ end end end end -end \ No newline at end of file +end