Sha256: 9a354fa13f961fc31cf38f8204c41570608db6e0d9caee2b7ab104dcc77a3668
Contents?: true
Size: 836 Bytes
Versions: 1
Compression:
Stored size: 836 Bytes
Contents
require 'spec_helper' require 'page-object/elements' describe PageObject::Elements::ListItem do let(:video) { PageObject::Elements::Video.new(double(''), :platform => :watir_webdriver) } it "should return height when present" do expect(video).to receive(:attribute).with(:height).and_return("20") expect(video.height).to eq(20) end it "should not return height when not present" do expect(video).to receive(:attribute).with(:height).and_return(nil) expect(video.height).to eq(nil) end it "should return width when present" do expect(video).to receive(:attribute).with(:width).and_return("20") expect(video.width).to eq(20) end it "should not return width when not present" do expect(video).to receive(:attribute).with(:width).and_return(nil) expect(video.width).to eq(nil) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
page-object-1.1.1 | spec/page-object/elements/video_spec.rb |