added spec to test webrat's ability to recognize image buttons
This commit is contained in:
parent
e6aff6d37c
commit
5ea0db332c
@ -323,6 +323,16 @@ describe "clicks_button" do
|
||||
@session.clicks_button
|
||||
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
|
||||
@session.response_body = <<-EOS
|
||||
<form method="get" action="/login">
|
||||
|
Loading…
Reference in New Issue
Block a user