aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/form_helper_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-14 00:24:30 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-14 01:07:03 +0100
commitd50bf47b008ae4c1a84ccc44e8fc7633bfffa650 (patch)
treeb85ac7597e6e1bc269f4cb721193aca7c2b515ee /actionpack/test/template/form_helper_test.rb
parent8e0208f650eac23ee4b5c748d2de715344c5c629 (diff)
downloadrails-d50bf47b008ae4c1a84ccc44e8fc7633bfffa650.tar.gz
rails-d50bf47b008ae4c1a84ccc44e8fc7633bfffa650.tar.bz2
rails-d50bf47b008ae4c1a84ccc44e8fc7633bfffa650.zip
Call :to_model before working with the object.
Diffstat (limited to 'actionpack/test/template/form_helper_test.rb')
-rw-r--r--actionpack/test/template/form_helper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb
index c62bc6f4a8..2f6d97de3d 100644
--- a/actionpack/test/template/form_helper_test.rb
+++ b/actionpack/test/template/form_helper_test.rb
@@ -521,11 +521,11 @@ class FormHelperTest < ActionView::TestCase
old_locale, I18n.locale = I18n.locale, :submit
form_for(:post) do |f|
- concat f.submit
+ concat f.submit :class => "extra"
end
expected = "<form action='http://www.example.com' method='post'>" +
- "<input name='commit' id='post_submit' type='submit' value='Save changes' />" +
+ "<input name='commit' class='extra' id='post_submit' type='submit' value='Save changes' />" +
"</form>"
assert_dom_equal expected, output_buffer
ensure