From a15068726f4f63fbdf830da2be8560f1b99f5d9d Mon Sep 17 00:00:00 2001
From: David Heinemeier Hansson
Date: Sun, 11 Sep 2005 08:39:23 +0000
Subject: Added :multipart option to ActiveRecordHelper#form to make it
possible to add file input fields #2034 [jstirk@oobleyboo.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2193 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
---
actionpack/test/template/active_record_helper_test.rb | 7 +++++++
1 file changed, 7 insertions(+)
(limited to 'actionpack/test/template/active_record_helper_test.rb')
diff --git a/actionpack/test/template/active_record_helper_test.rb b/actionpack/test/template/active_record_helper_test.rb
index cfbe3b62b7..6d416fedfb 100644
--- a/actionpack/test/template/active_record_helper_test.rb
+++ b/actionpack/test/template/active_record_helper_test.rb
@@ -119,4 +119,11 @@ class ActiveRecordHelperTest < Test::Unit::TestCase
assert_equal %(1 error prohibited this post from being saved
There were problems with the following fields:
- Author name can't be empty
), error_messages_for("post")
assert_equal %(1 error prohibited this post from being saved
There were problems with the following fields:
- Author name can't be empty
), error_messages_for("post", :class => "errorDeathByClass", :id => "errorDeathById", :header_tag => "h1")
end
+
+ def test_form_with_string_multipart
+ assert_equal(
+ %(
),
+ form("post", :multipart => true)
+ )
+ end
end
--
cgit v1.2.3