1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/template/erb/form_for_test.rb
Leonardo Capillera be797750e6 Remove deprecated form_for with strings or symbols
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-11-18 16:46:55 -02:00

12 lines
382 B
Ruby

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(Post.new, :url => {:controller => 'blah', :action => 'update'})", ""
assert_match %r{<form.*action="/blah/update".*method="post">.*</form>}, output
end
end
end