From f262e338bfd5eaac2a8abbec2fbf0c44b624f684 Mon Sep 17 00:00:00 2001 From: Luke Melia Date: Thu, 20 Nov 2008 15:23:31 -0500 Subject: [PATCH] Added pending spec for clicks_link not matching inner_html. Fix will be involved and likely breaking, because clicks_link does explicitly match inner_html today. However, we think the spec makes clear why it shouldn't. Luke Melia / Noah Davis --- spec/api/click_link_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spec/api/click_link_spec.rb b/spec/api/click_link_spec.rb index 642ec53..913b9bc 100644 --- a/spec/api/click_link_spec.rb +++ b/spec/api/click_link_spec.rb @@ -271,6 +271,17 @@ describe "click_link" do @session.click_link "This is a link" end + it "should not match on non-text contents" do + pending "needs fix" + @session.response_body = <<-EOS + My house + Location + EOS + + @session.should_receive(:get).with("/page2", {}) + @session.click_link "Location" + end + it "should click link within a selector" do @session.response_body = <<-EOS Link