aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-03-06 12:02:17 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-03-06 12:02:17 +0000
commiteb5ca2ea5ff55e2f6a49580afab5e0ddd0b2bf11 (patch)
tree4339a9e113f965cb42a3d44ee14a7f29b7ec4163 /actionpack/test
parentfe6d929bf03650382db06ed63a199f9baa79102d (diff)
downloadrails-eb5ca2ea5ff55e2f6a49580afab5e0ddd0b2bf11.tar.gz
rails-eb5ca2ea5ff55e2f6a49580afab5e0ddd0b2bf11.tar.bz2
rails-eb5ca2ea5ff55e2f6a49580afab5e0ddd0b2bf11.zip
Removed the default border on link_image_to (it broke xhtml strict) -- can be specified with :border => 0 #517 [?/caleb]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@836 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/url_helper_test.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/actionpack/test/template/url_helper_test.rb b/actionpack/test/template/url_helper_test.rb
index 379db0b9b7..47241bd09f 100644
--- a/actionpack/test/template/url_helper_test.rb
+++ b/actionpack/test/template/url_helper_test.rb
@@ -29,21 +29,21 @@ class UrlHelperTest < Test::Unit::TestCase
)
end
- def test_link_to_image
+ def test_link_image_to
assert_equal(
"<a href=\"http://www.world.com\"><img alt=\"Rss\" border=\"0\" height=\"45\" src=\"/images/rss.png\" width=\"30\" /></a>",
- link_to_image("rss", "http://www.world.com", "size" => "30x45")
+ link_image_to("rss", "http://www.world.com", "size" => "30x45", "border" => "0")
)
assert_equal(
- "<a class=\"admin\" href=\"http://www.world.com\"><img alt=\"Feed\" border=\"0\" height=\"45\" src=\"/images/rss.gif\" width=\"30\" /></a>",
- link_to_image("rss.gif", "http://www.world.com", "size" => "30x45", "alt" => "Feed", "class" => "admin")
+ "<a class=\"admin\" href=\"http://www.world.com\"><img alt=\"Feed\" height=\"45\" src=\"/images/rss.gif\" width=\"30\" /></a>",
+ link_image_to("rss.gif", "http://www.world.com", "size" => "30x45", "alt" => "Feed", "class" => "admin")
)
- assert_equal link_to_image("rss", "http://www.world.com", "size" => "30x45"),
- link_to_image("rss", "http://www.world.com", :size => "30x45")
- assert_equal link_to_image("rss.gif", "http://www.world.com", "size" => "30x45", "alt" => "Feed", "class" => "admin"),
- link_to_image("rss.gif", "http://www.world.com", :size => "30x45", :alt => "Feed", :class => "admin")
+ assert_equal link_image_to("rss", "http://www.world.com", "size" => "30x45"),
+ link_image_to("rss", "http://www.world.com", :size => "30x45")
+ assert_equal link_image_to("rss.gif", "http://www.world.com", "size" => "30x45", "alt" => "Feed", "class" => "admin"),
+ link_image_to("rss.gif", "http://www.world.com", :size => "30x45", :alt => "Feed", :class => "admin")
end
def test_link_unless_current