aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2007-02-15 16:25:46 +0000
committerRick Olson <technoweenie@gmail.com>2007-02-15 16:25:46 +0000
commit5d54b8f07cef29e932e164e23713a71274c78e49 (patch)
tree75b6df90d0364b86b47e1a2a25196c73bd34d7b2 /actionpack/test/template
parent5b7630e17423f6c906fb4438766463b25c6fc133 (diff)
downloadrails-5d54b8f07cef29e932e164e23713a71274c78e49.tar.gz
rails-5d54b8f07cef29e932e164e23713a71274c78e49.tar.bz2
rails-5d54b8f07cef29e932e164e23713a71274c78e49.zip
Add Mime::Type convenience methods to check the current mime type. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6152 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/form_tag_helper_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/template/form_tag_helper_test.rb b/actionpack/test/template/form_tag_helper_test.rb
index e7fd3b0823..cc5ab1e7f4 100644
--- a/actionpack/test/template/form_tag_helper_test.rb
+++ b/actionpack/test/template/form_tag_helper_test.rb
@@ -132,7 +132,7 @@ class FormTagHelperTest < Test::Unit::TestCase
def test_submit_tag
assert_dom_equal(
- %(<input name='commit' type='submit' value='Save' onclick="this.disabled=true;this.value='Saving...';alert('hello!');return (this.form.onsubmit ? this.form.onsubmit() : true)" />),
+ %(<input name='commit' type='submit' value='Save' onclick="this.disabled=true;this.value='Saving...';alert('hello!');return (this.form.onsubmit ? (this.form.onsubmit() ? this.form.submit() : false) : this.form.submit())" />),
submit_tag("Save", :disable_with => "Saving...", :onclick => "alert('hello!')")
)
end