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:46:30 +0300 |
commit | 65434a2f259e94ebacccd1166e5d6a93d0b77732 (patch) | |
tree | 1776dff1a0aed4c71c08ae0ea298dd65a8a6cc65 /actionpack/test | |
parent | 65f4d8019f63ff384b0ecfe25b6f5f829151de9a (diff) | |
download | rails-65434a2f259e94ebacccd1166e5d6a93d0b77732.tar.gz rails-65434a2f259e94ebacccd1166e5d6a93d0b77732.tar.bz2 rails-65434a2f259e94ebacccd1166e5d6a93d0b77732.zip |
apply form_for namespace option to date_select
Diffstat (limited to 'actionpack/test')
-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 2bdb54bd5e..c5de736ffb 100644 --- a/actionpack/test/template/form_helper_test.rb +++ b/actionpack/test/template/form_helper_test.rb @@ -1063,6 +1063,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) |