aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--actionpack/CHANGELOG2
-rw-r--r--actionpack/test/template/active_record_helper_test.rb9
2 files changed, 11 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index d08fe12d1f..cb88f5fa24 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Added tests for options to ActiveRecordHelper#form. Closes #7213 [richcollins, mikong, mislav]
+
* Changed before_filter halting to happen automatically on render or redirect but no longer on simply returning false [DHH]
* Ensure that cookies handle array values correctly. Closes #9937 [queso]
diff --git a/actionpack/test/template/active_record_helper_test.rb b/actionpack/test/template/active_record_helper_test.rb
index 6ef74aa8e7..bec29e134f 100644
--- a/actionpack/test/template/active_record_helper_test.rb
+++ b/actionpack/test/template/active_record_helper_test.rb
@@ -91,6 +91,8 @@ class ActiveRecordHelperTest < Test::Unit::TestCase
setup_post
setup_user
+ @response = ActionController::TestResponse.new
+
@controller = Object.new
def @controller.url_for(options)
options = options.symbolize_keys
@@ -139,6 +141,13 @@ class ActiveRecordHelperTest < Test::Unit::TestCase
)
end
+ def test_form_with_action_option
+ @response.body = form("post", :action => "sign")
+ assert_select "form[action=sign]" do |form|
+ assert_select "input[type=submit][value=Sign]"
+ end
+ end
+
def test_form_with_date
silence_warnings do
def Post.content_columns() [ Column.new(:date, "written_on", "Written on") ] end