Sha256: 75c430b7fb58afceae8be10e102675fdb57a91f7b1c4d4fc4ff9985ea84562ba

Contents?: true

Size: 352 Bytes

Versions: 2

Compression:

Stored size: 352 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activejob-lock-0.0.2 rails/actionview/test/template/erb/form_for_test.rb
activejob-lock-0.0.1 rails/actionview/test/template/erb/form_for_test.rb