1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fixed some test cases

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@298 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-01-01 16:41:14 +00:00
parent 250a570c04
commit 3b05d412de
2 changed files with 2 additions and 3 deletions

View file

@ -213,7 +213,7 @@ class DateHelperTest < Test::Unit::TestCase
def test_date_select_with_zero_value_and_no_end_year def test_date_select_with_zero_value_and_no_end_year
expected = %(<select name="date[first][year]">\n) expected = %(<select name="date[first][year]">\n)
2003.upto(2009) { |y| expected << %(<option>#{y}</option>\n) } 2003.upto(2010) { |y| expected << %(<option>#{y}</option>\n) }
expected << "</select>\n" expected << "</select>\n"
expected << %(<select name="date[first][month]">\n) expected << %(<select name="date[first][month]">\n)

View file

@ -58,7 +58,6 @@ class UrlHelperTest < Test::Unit::TestCase
end end
def test_link_with_nil_html_options def test_link_with_nil_html_options
assert "<a href=\"http://www.world.com\">Hello</a>", assert_equal "<a href=\"http://www.world.com\">Hello</a>", link_to("Hello", {:action => 'myaction'}, nil)
link_to("Hello", {:action => 'myaction'}, nil)
end end
end end