aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/test/template/erb/form_for_test.rb
blob: 02f07496e05ebbd59010f3f589d28924daa8846e (plain) (tree)
1
2
3
4
5
6
7
8
9

                             
                                



                                     
                                                                                                            
                                                                                    

       
   
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