public
Description: Webrat - Ruby Acceptance Testing for Web applications
Homepage: http://gitrdoc.com/brynary/webrat/tree/master/
Clone URL: git://github.com/brynary/webrat.git
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
lukemelia (author)
Thu Nov 20 12:23:31 -0800 2008
commit  f262e338bfd5eaac2a8abbec2fbf0c44b624f684
tree    653c2e518454690e879f28d3696239883a3b85fd
parent  ba3e29d2a3d4af9c217fb429c135b8045dcc046d
...
271
272
273
 
 
 
 
 
 
 
 
 
 
 
274
275
276
...
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
0
@@ -271,6 +271,17 @@ describe "click_link" do
0
     @session.click_link "This is a link"
0
   end
0
   
0
+  it "should not match on non-text contents" do
0
+    pending "needs fix"
0
+    @session.response_body = <<-EOS
0
+    <a href="/page1"><span class="location">My house</span></a>
0
+    <a href="/page2">Location</a>
0
+    EOS
0
+    
0
+    @session.should_receive(:get).with("/page2", {})
0
+    @session.click_link "Location"
0
+  end
0
+  
0
   it "should click link within a selector" do
0
     @session.response_body = <<-EOS
0
     <a href="/page1">Link</a>

Comments