Permalink
Browse files

Fix failing date helper test. Closes #10664 [Wesley Moxam]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8526 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 9a97f9a commit 001fe6a435ad87fc353616663aaaeb307affd733 @jeremy jeremy committed Jan 2, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/test/template/date_helper_test.rb
@@ -1395,7 +1395,7 @@ def test_include_blank_overrides_default_option
expected = %{<select id="post_updated_at_1i" name="post[updated_at(1i)]">\n}
expected << %(<option value=""></option>\n)
- 2002.upto(2012) { |i| expected << %(<option value="#{i}">#{i}</option>\n) }
+ (Time.now.year - 5).upto(Time.now.year + 5) { |i| expected << %(<option value="#{i}">#{i}</option>\n) }
expected << "</select>\n"
expected << %{<select id="post_updated_at_2i" name="post[updated_at(2i)]">\n}
expected << %(<option value=""></option>\n)

0 comments on commit 001fe6a

Please sign in to comment.