提交 543f7892 编写于 作者: M Michael Koziarski

Fix failing test due to hard coded year


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 0a7af125
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册