From 00541f263b0aac16cdfcef68b4af5b1877f4dd02 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 30 Dec 2005 19:41:25 +0000 Subject: Added :disable_with option to FormTagHelper#submit_tag to allow for easily disabled submit buttons with different text [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3361 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/template/form_tag_helper_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'actionpack/test') diff --git a/actionpack/test/template/form_tag_helper_test.rb b/actionpack/test/template/form_tag_helper_test.rb index 401d3fbadc..438cd8f411 100644 --- a/actionpack/test/template/form_tag_helper_test.rb +++ b/actionpack/test/template/form_tag_helper_test.rb @@ -94,6 +94,13 @@ class FormTagHelperTest < Test::Unit::TestCase assert_dom_equal expected, actual end + def test_submit_tag + assert_dom_equal( + %(), + submit_tag("Save", :disable_with => "Saving...", :onclick => "alert('hello!')") + ) + end + def test_pass assert_equal 1, 1 end -- cgit v1.2.3