mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
11 lines
No EOL
349 B
Ruby
11 lines
No EOL
349 B
Ruby
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 |