diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-01-06 10:48:47 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-01-06 11:04:18 -0200 |
commit | fc956425d405e75bcf310f3e6f08cf201cc8131a (patch) | |
tree | 555056074044212c009f7797833aa6123ff9e6ce /actionpack/test/template | |
parent | 6e6764b3a1479523eb352ca2baeed0a508ce954b (diff) | |
download | rails-fc956425d405e75bcf310f3e6f08cf201cc8131a.tar.gz rails-fc956425d405e75bcf310f3e6f08cf201cc8131a.tar.bz2 rails-fc956425d405e75bcf310f3e6f08cf201cc8131a.zip |
Revert "Revert "More 1.9 way""
Fixed failing tests
This reverts commit 8350ce97f2065eed9638c595d3938a573d6fa343.
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/form_helper_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb index 9a13d4e399..a36b1f713f 100644 --- a/actionpack/test/template/form_helper_test.rb +++ b/actionpack/test/template/form_helper_test.rb @@ -867,6 +867,7 @@ class FormHelperTest < ActionView::TestCase def test_form_for_with_remote_without_html @post.persisted = false + def @post.id; nil; end form_for(@post, :remote => true) do |f| concat f.text_field(:title) concat f.text_area(:body) @@ -1016,6 +1017,7 @@ class FormHelperTest < ActionView::TestCase old_locale, I18n.locale = I18n.locale, :submit @post.persisted = false + def @post.id; nil; end form_for(@post) do |f| concat f.submit end |