Skip to content

Commit

Permalink
Merge commit '742db2d910d7baa51487400cb339a20bd7079418'
Browse files Browse the repository at this point in the history
  • Loading branch information
mike.gaffney committed Apr 22, 2009
2 parents b1dfc1c + 742db2d commit 7d4a203
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions spec/public/click_link_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,27 @@
webrat_session.should_receive(:get).with("/page", {})
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
Expand Down

0 comments on commit 7d4a203

Please sign in to comment.