diff options
author | Sergey Nartimov <just.lest@gmail.com> | 2012-03-26 21:46:30 +0300 |
---|---|---|
committer | Sergey Nartimov <just.lest@gmail.com> | 2012-03-26 21:53:10 +0300 |
commit | bd8a9701c27b4261e9d8dd84aebbde6ba784ed83 (patch) | |
tree | ba3e8093a4980246205c99611395a9db9eecc40c /actionpack/test/template/form_helper_test.rb | |
parent | ed7567ca7aa4ea3f29236229f4c1d366550a0c5c (diff) | |
download | rails-bd8a9701c27b4261e9d8dd84aebbde6ba784ed83.tar.gz rails-bd8a9701c27b4261e9d8dd84aebbde6ba784ed83.tar.bz2 rails-bd8a9701c27b4261e9d8dd84aebbde6ba784ed83.zip |
apply form_for namespace option to date_select
Diffstat (limited to 'actionpack/test/template/form_helper_test.rb')
-rw-r--r-- | actionpack/test/template/form_helper_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb index 4dae5479d6..f9940ead58 100644 --- a/actionpack/test/template/form_helper_test.rb +++ b/actionpack/test/template/form_helper_test.rb @@ -960,6 +960,14 @@ class FormHelperTest < ActionView::TestCase assert_dom_equal expected, output_buffer end + def test_form_for_with_namespace_with_date_select + form_for(@post, :namespace => 'namespace') do |f| + concat f.date_select(:written_on) + end + + assert_select 'select#namespace_post_written_on_1i' + end + def test_form_for_with_namespace_with_label form_for(@post, :namespace => 'namespace') do |f| concat f.label(:title) |