Merge commit '742db2d910d7baa51487400cb339a20bd7079418'

This commit is contained in:
mike.gaffney 2009-04-22 12:15:27 -05:00
commit 7d4a2035f7
1 changed files with 21 additions and 0 deletions

View File

@ -102,6 +102,27 @@ describe "click_link" do
click_link /_text_/
end
it "should click links by title" do
with_html <<-HTML
<html>
<a title="piddle" href="/page">Link text</a>
</html>
HTML
webrat_session.should_receive(:get).with("/page", {})
click_link 'piddle'
end
it "should click links by title regex" do
with_html <<-HTML
<html>
<a title="piddlediddle" href="/page">Link text</a>
</html>
HTML
webrat_session.should_receive(:get).with("/page", {})
click_link /iddle/
end
it "should click rails javascript links with authenticity tokens" do
with_html <<-HTML
<html>