From 5ea0db332ca4f36cbd05ef802a0c402929df126c Mon Sep 17 00:00:00 2001 From: Tim Harper Date: Sat, 17 May 2008 12:53:29 -0600 Subject: [PATCH] added spec to test webrat's ability to recognize image buttons --- spec/api/clicks_button_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/api/clicks_button_spec.rb b/spec/api/clicks_button_spec.rb index 39a12b5..edeccde 100644 --- a/spec/api/clicks_button_spec.rb +++ b/spec/api/clicks_button_spec.rb @@ -323,6 +323,16 @@ describe "clicks_button" do @session.clicks_button end + it "should recognize image button tags" do + @session.response_body = <<-EOS +
+ +
+ EOS + @session.expects(:get) + @session.clicks_button + end + it "should recognize button tags by content" do @session.response_body = <<-EOS