Merge branch 'master' of git://github.com/timcharper/webrat into timcharper/master

This commit is contained in:
Bryan Helmkamp 2008-07-20 21:58:32 -04:00
commit 9b90fe3c57
1 changed files with 10 additions and 0 deletions

View File

@ -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">