diff options
author | Grzegorz Derebecki <grzegorz.derebecki@fdb.pl> | 2013-03-16 15:26:42 +0100 |
---|---|---|
committer | Grzegorz Derebecki <grzegorz.derebecki@fdb.pl> | 2013-03-17 10:51:08 +0100 |
commit | 3ab7ddb8daa1d1754a9de06ee3cbc790f2025144 (patch) | |
tree | 5bd997f65f22d4afa22063060bb9654c6b02aedd /actionpack/test | |
parent | 9a421aaa8285cf2a7ecb1af370748b0337818930 (diff) | |
download | rails-3ab7ddb8daa1d1754a9de06ee3cbc790f2025144.tar.gz rails-3ab7ddb8daa1d1754a9de06ee3cbc790f2025144.tar.bz2 rails-3ab7ddb8daa1d1754a9de06ee3cbc790f2025144.zip |
Allow pass multipart option to form_for
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/form_helper_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb index 268bab6ad2..dff0b8bdc2 100644 --- a/actionpack/test/template/form_helper_test.rb +++ b/actionpack/test/template/form_helper_test.rb @@ -2791,8 +2791,8 @@ class FormHelperTest < ActionView::TestCase end def test_form_for_with_html_options_adds_options_to_form_tag - form_for(@post, html: { id: 'some_form', class: 'some_class' }) do |f| end - expected = whole_form("/posts/123", "some_form", "some_class", method: "patch") + form_for(@post, html: { id: 'some_form', class: 'some_class', multipart: true }) do |f| end + expected = whole_form("/posts/123", "some_form", "some_class", method: "patch", multipart: "multipart/form-data") assert_dom_equal expected, output_buffer end |