spec/watirspec/p_spec.rb in watir-webdriver-0.0.1.dev vs spec/watirspec/p_spec.rb in watir-webdriver-0.0.1.dev2

- old
+ new

@@ -123,21 +123,6 @@ browser.p(:index, 0).should respond_to(:text) browser.p(:index, 0).should respond_to(:value) end end - # Other - describe "#to_s" do - it "returns a human readable representation of the element" do - browser.p(:index, 0).to_s.should == "tag: p\n" + - " id: lead\n" + - " class: lead\n" + - " title: Lorem ipsum\n" + - " text: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur eu pede. Ut justo. Praesent feugiat, elit in feugiat iaculis, sem risus rutrum justo, eget fermentum dolor arcu non nunc." - end - - it "raises UnknownObjectException if the p doesn't exist" do - lambda { browser.p(:xpath, "//p[@id='no_such_id']").text }.should raise_error( UnknownObjectException) - end - end - end