Merge commit '742db2d910d7baa51487400cb339a20bd7079418'
This commit is contained in:
commit
7d4a2035f7
@ -102,6 +102,27 @@ describe "click_link" do
|
|||||||
click_link /_text_/
|
click_link /_text_/
|
||||||
end
|
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
|
it "should click rails javascript links with authenticity tokens" do
|
||||||
with_html <<-HTML
|
with_html <<-HTML
|
||||||
<html>
|
<html>
|
||||||
|
Loading…
Reference in New Issue
Block a user