spec/watirspec/elements/span_spec.rb in watir-6.11.0 vs spec/watirspec/elements/span_spec.rb in watir-6.12.0

- old
+ new

@@ -25,12 +25,11 @@ it "returns false if the element doesn't exist" do expect(browser.span(id: "no_such_id")).to_not exist expect(browser.span(id: /no_such_id/)).to_not exist expect(browser.span(text: "no_such_text")).to_not exist - msg = /:text locator with RegExp values to find elements based on only visible text is deprecated. Use :visible_text instead./ - expect { expect(browser.span(text: /no_such_text/)).to_not exist }.to output(msg).to_stdout_from_any_process + expect(browser.span(text: /no_such_text/)).to_not exist expect(browser.span(class: "no_such_class")).to_not exist expect(browser.span(class: /no_such_class/)).to_not exist expect(browser.span(index: 1337)).to_not exist expect(browser.span(xpath: "//span[@id='no_such_id']")).to_not exist end @@ -94,10 +93,10 @@ expect(browser.span(index: 4).text).to eq '' end it "raises UnknownObjectException if the span doesn't exist" do expect { browser.span(id: 'no_such_id').text }.to raise_unknown_object_exception - expect { browser.span(:xpath , "//span[@id='no_such_id']").text }.to raise_unknown_object_exception + expect { browser.span(xpath: "//span[@id='no_such_id']").text }.to raise_unknown_object_exception end end describe "#respond_to?" do it "returns true for all attribute methods" do