From 71b77a3d6aa527b3486f89556ca3752e06985146 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Wed, 13 Jun 2007 01:20:55 +0000 Subject: Improve helper test coverage. Closes #7215, #7233, #7234, #7235, #7236, #7237, #7238. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7011 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/template/date_helper_test.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'actionpack/test/template/date_helper_test.rb') diff --git a/actionpack/test/template/date_helper_test.rb b/actionpack/test/template/date_helper_test.rb index 8f92840c78..92a0a0a43e 100755 --- a/actionpack/test/template/date_helper_test.rb +++ b/actionpack/test/template/date_helper_test.rb @@ -224,6 +224,14 @@ class DateHelperTest < Test::Unit::TestCase assert_equal expected, select_month(8, :use_month_names => month_names) end + def test_select_month_with_hidden + assert_dom_equal "\n", select_month(8, :use_hidden => true) + end + + def test_select_month_with_hidden_and_field_name + assert_dom_equal "\n", select_month(8, :use_hidden => true, :field_name => 'mois') + end + def test_select_year expected = %(\n", select_year(2007, :use_hidden => true) + end + + def test_select_year_with_hidden_and_field_name + assert_dom_equal "\n", select_year(2007, :use_hidden => true, :field_name => 'anno') + end + def test_select_hour expected = %(\n", select_minute(8, :use_hidden => true) + end + + def test_select_minute_with_hidden_and_field_name + assert_dom_equal "\n", select_minute(8, :use_hidden => true, :field_name => 'minuto') + end + def test_select_second expected = %(