Permalink
Browse files

Remove a couple more bogus tests

<input type="button" /> doesn't submit forms
  • Loading branch information...
1 parent f6dd24f commit bb282d992edc8a9676211e5d9df4085afbd112a3 @brynary brynary committed Nov 14, 2009
@@ -1,7 +1,6 @@
<h1 id='form_title' class='form title'>Webrat Buttons Form</h1>
<% form_tag "/buttons" do %>
- <input type="button" id="input_button_id" value="input_button_value" />
<input type="submit" id="input_submit_id" value="input_submit_value" />
<input type="image" id="input_image_id" value="input_image_value" alt="input_image_alt" src="" />
@@ -1,7 +1,6 @@
<h1 id='form_title' class='form title'>Webrat Buttons Form</h1>
<% form_tag submit_path do %>
- <input type="button" id="input_button_id" value="input_button_value">
<input type="submit" id="input_submit_id" value="input_submit_value">
<input type="image" id="input_image_id" value="input_image_value" alt="input_image_alt" src="">
@@ -29,16 +29,6 @@ class ButtonClickTest < ActionController::IntegrationTest
click_button "button_image_text"
end
- # <input type="button" ...>
- test "should click image with type button by id" do
- visit buttons_path
- click_button "input_button_id"
- end
- test "should click input with type button by value" do
- visit buttons_path
- click_button "input_button_value"
- end
-
# <input type="submit" ...>
test "should click input with type submit by id" do
visit buttons_path

0 comments on commit bb282d9

Please sign in to comment.