aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/erb/form_for_test.rb
diff options
context:
space:
mode:
authorLeonardo Capillera <leonardo@wyeworks.com>2010-11-18 16:31:27 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-11-18 16:46:55 -0200
commitbe797750e6ce866ea08307f63bf35304a965c8d4 (patch)
tree1f5427f7ce13ab209c874598a1bf15bcd0fe78a2 /actionpack/test/template/erb/form_for_test.rb
parentc52e2cf4b3ef22fea6989df906a53188e632b9a4 (diff)
downloadrails-be797750e6ce866ea08307f63bf35304a965c8d4.tar.gz
rails-be797750e6ce866ea08307f63bf35304a965c8d4.tar.bz2
rails-be797750e6ce866ea08307f63bf35304a965c8d4.zip
Remove deprecated form_for with strings or symbols
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'actionpack/test/template/erb/form_for_test.rb')
-rw-r--r--actionpack/test/template/erb/form_for_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/template/erb/form_for_test.rb b/actionpack/test/template/erb/form_for_test.rb
index e722b40a9a..02f07496e0 100644
--- a/actionpack/test/template/erb/form_for_test.rb
+++ b/actionpack/test/template/erb/form_for_test.rb
@@ -1,10 +1,11 @@
require "abstract_unit"
require "template/erb/helper"
+require "controller/fake_models"
module ERBTest
class TagHelperTest < BlockTestCase
test "form_for works" do
- output = render_content "form_for(:staticpage, :url => {:controller => 'blah', :action => 'update'})", ""
+ output = render_content "form_for(Post.new, :url => {:controller => 'blah', :action => 'update'})", ""
assert_match %r{<form.*action="/blah/update".*method="post">.*</form>}, output
end
end