Permalink
Browse files

Fix failing test due to hard coded year

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 0a7af12 commit 543f7892404381f828a9e29d221d0d361cdb5401 @NZKoz NZKoz committed Jan 13, 2006
Showing with 2 additions and 1 deletion.
  1. +2 −1 actionpack/test/template/date_helper_test.rb
@@ -552,7 +552,8 @@ def test_date_select_with_zero_value_and_no_start_year
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)

0 comments on commit 543f789

Please sign in to comment.