Merge branch 'master' of git://github.com/timcharper/webrat into timcharper/master
This commit is contained in:
commit
9b90fe3c57
|
@ -323,6 +323,16 @@ describe "clicks_button" do
|
||||||
@session.clicks_button
|
@session.clicks_button
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "should recognize image button tags" do
|
||||||
|
@session.response_body = <<-EOS
|
||||||
|
<form action="/">
|
||||||
|
<input type="image" />
|
||||||
|
</form>
|
||||||
|
EOS
|
||||||
|
@session.expects(:get)
|
||||||
|
@session.clicks_button
|
||||||
|
end
|
||||||
|
|
||||||
it "should recognize button tags by content" do
|
it "should recognize button tags by content" do
|
||||||
@session.response_body = <<-EOS
|
@session.response_body = <<-EOS
|
||||||
<form method="get" action="/login">
|
<form method="get" action="/login">
|
||||||
|
|
Loading…
Reference in New Issue