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





                                     
                                                                                                               
                                                                                    

       
   
require "abstract_unit"
require "template/erb/helper"

module ERBTest
  class TagHelperTest < BlockTestCase
    test "form_for works" do
      output = render_content "form_for(:staticpage, :url => {:controller => 'blah', :action => 'update'})", ""
      assert_match %r{<form.*action="/blah/update".*method="post">.*</form>}, output
    end
  end
end