# frozen_string_literal: true require "abstract_unit" require "template/erb/helper" module ERBTest class TagHelperTest < BlockTestCase test "form_for works" do routes = ActionDispatch::Routing::RouteSet.new routes.draw do get "/blah/update", to: "blah#update" end output = render_content "form_for(:staticpage, :url => {:controller => 'blah', :action => 'update'})", "", routes assert_match %r{.*}, output end end end