diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-01 16:41:14 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-01 16:41:14 +0000 |
commit | 3b05d412def63b338252316073418a9ad0d1a4d9 (patch) | |
tree | d4ef3b68abb6e3ef6cecc1e0571d33ee0e3e5ad4 /actionpack | |
parent | 250a570c0436c6918101e075388b39e59f1e7246 (diff) | |
download | rails-3b05d412def63b338252316073418a9ad0d1a4d9.tar.gz rails-3b05d412def63b338252316073418a9ad0d1a4d9.tar.bz2 rails-3b05d412def63b338252316073418a9ad0d1a4d9.zip |
Fixed some test cases
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@298 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rwxr-xr-x | actionpack/test/template/date_helper_test.rb | 2 | ||||
-rw-r--r-- | actionpack/test/template/url_helper_test.rb | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/actionpack/test/template/date_helper_test.rb b/actionpack/test/template/date_helper_test.rb index 30cb73da71..fcc2da9655 100755 --- a/actionpack/test/template/date_helper_test.rb +++ b/actionpack/test/template/date_helper_test.rb @@ -213,7 +213,7 @@ 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(2009) { |y| expected << %(<option>#{y}</option>\n) } + 2003.upto(2010) { |y| expected << %(<option>#{y}</option>\n) } expected << "</select>\n" expected << %(<select name="date[first][month]">\n) diff --git a/actionpack/test/template/url_helper_test.rb b/actionpack/test/template/url_helper_test.rb index 9de510d0a4..cb0e3fe2e2 100644 --- a/actionpack/test/template/url_helper_test.rb +++ b/actionpack/test/template/url_helper_test.rb @@ -58,7 +58,6 @@ class UrlHelperTest < Test::Unit::TestCase end def test_link_with_nil_html_options - assert "<a href=\"http://www.world.com\">Hello</a>", - link_to("Hello", {:action => 'myaction'}, nil) + assert_equal "<a href=\"http://www.world.com\">Hello</a>", link_to("Hello", {:action => 'myaction'}, nil) end end |