blob: ec6e8727356593b9029a2809bea3ff0ec899b873 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
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_equal "<form action=\"/blah/update\" method=\"post\"></form>", output
end
end
end
|