aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xactionpack/test/template/date_helper_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/template/date_helper_test.rb b/actionpack/test/template/date_helper_test.rb
index 7197a1a9c1..0e838c07cf 100755
--- a/actionpack/test/template/date_helper_test.rb
+++ b/actionpack/test/template/date_helper_test.rb
@@ -552,7 +552,8 @@ class DateHelperTest < Test::Unit::TestCase
def test_date_select_with_zero_value_and_no_end_year
expected = %(<select name="date[first][year]">\n)
- 2003.upto(2010) { |y| expected << %(<option value="#{y}">#{y}</option>\n) }
+ last_year = Time.now.year + 5
+ 2003.upto(last_year) { |y| expected << %(<option value="#{y}">#{y}</option>\n) }
expected << "</select>\n"
expected << %(<select name="date[first][month]">\n)