Sha256: d26d8ae1f4de40b684abb7b7b65c0c0400d21d018480ac1c926669b2dc13c20b
Contents?: true
Size: 703 Bytes
Versions: 4
Compression:
Stored size: 703 Bytes
Contents
require 'spec_helper' describe Druid::Elements::Video do let(:video) { Druid::Elements::Video.new(double(''))} it "should return height when present" do expect(video).to receive(:size).and_return('height' => 20) expect(video.height).to eq(20) end it "should not return height when not present" do expect(video).to receive(:size).and_return({}) expect(video.height).to eq(nil) end it "should return width when present" do expect(video).to receive(:size).and_return('width' => 20) expect(video.width).to eq(20) end it "should not return width when not present" do expect(video).to receive(:size).and_return({}) expect(video.width).to eq(nil) end end
Version data entries
4 entries across 4 versions & 1 rubygems