diff options
author | Michael Koziarski <michael@koziarski.com> | 2006-01-13 07:08:55 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2006-01-13 07:08:55 +0000 |
commit | 543f7892404381f828a9e29d221d0d361cdb5401 (patch) | |
tree | eb23fc1814731b5a651084e7d67b536b374fd1d5 | |
parent | 0a7af125caa86aeb6608afc503997938554ce5dc (diff) | |
download | rails-543f7892404381f828a9e29d221d0d361cdb5401.tar.gz rails-543f7892404381f828a9e29d221d0d361cdb5401.tar.bz2 rails-543f7892404381f828a9e29d221d0d361cdb5401.zip |
Fix failing test due to hard coded year
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rwxr-xr-x | actionpack/test/template/date_helper_test.rb | 3 |
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) |