spec/watirspec/elements/thead_spec.rb in watir-6.9.1 vs spec/watirspec/elements/thead_spec.rb in watir-6.10.0

- old
+ new

@@ -41,14 +41,9 @@ it "raises TypeError when 'what' argument is invalid" do expect { browser.thead(id: 3.14).exists? }.to raise_error(TypeError) expect { browser.table(index: 0).thead(id: 3.14).exists? }.to raise_error(TypeError) end - - it "raises MissingWayOfFindingObjectException when 'how' argument is invalid" do - expect { browser.thead(no_such_how: 'some_value').exists? }.to raise_error(Watir::Exception::MissingWayOfFindingObjectException) - expect { browser.table(index: 0).thead(no_such_how: 'some_value').exists? }.to raise_error(Watir::Exception::MissingWayOfFindingObjectException) - end end describe "#[]" do it "returns the row at the given index (page context)" do expect(browser.thead(id: 'tax_headers')[0].id).to eq 'thead_row_1'