added spec to test webrat's ability to recognize image buttons

This commit is contained in:
Tim Harper 2008-05-17 12:53:29 -06:00
parent e6aff6d37c
commit 5ea0db332c

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