diff options
author | Marcel Molina <marcel@vernix.org> | 2005-09-28 02:08:58 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2005-09-28 02:08:58 +0000 |
commit | 1e87d6e887639650e23db5fbba0ccdf0536f289c (patch) | |
tree | c1783e509ab4d1111d07c116b1bdccbdaf0e8359 /actionpack | |
parent | 93db2f38957eb72f2d7e34570bbfe4d6ee3975e0 (diff) | |
download | rails-1e87d6e887639650e23db5fbba0ccdf0536f289c.tar.gz rails-1e87d6e887639650e23db5fbba0ccdf0536f289c.tar.bz2 rails-1e87d6e887639650e23db5fbba0ccdf0536f289c.zip |
Added test coverage for stylesheet_path to show that it works as requested in #1471.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/template/asset_tag_helper_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/template/asset_tag_helper_test.rb b/actionpack/test/template/asset_tag_helper_test.rb index 6e9a2b52ff..7fbe98f250 100644 --- a/actionpack/test/template/asset_tag_helper_test.rb +++ b/actionpack/test/template/asset_tag_helper_test.rb @@ -53,10 +53,14 @@ class AssetTagHelperTest < Test::Unit::TestCase StylePathToTag = { %(stylesheet_path("style")) => %(/stylesheets/style.css), + %(stylesheet_path('dir/file')) => %(/stylesheets/dir/file.css), + %(stylesheet_path('/dir/file')) => %(/dir/file.css) } StyleLinkToTag = { %(stylesheet_link_tag("style")) => %(<link href="/stylesheets/style.css" media="screen" rel="Stylesheet" type="text/css" />), + %(stylesheet_link_tag("/dir/file")) => %(<link href="/dir/file.css" media="screen" rel="Stylesheet" type="text/css" />), + %(stylesheet_link_tag("dir/file")) => %(<link href="/stylesheets/dir/file.css" media="screen" rel="Stylesheet" type="text/css" />), %(stylesheet_link_tag("style", :media => "all")) => %(<link href="/stylesheets/style.css" media="all" rel="Stylesheet" type="text/css" />), %(stylesheet_link_tag("random.styles", "/css/stylish")) => %(<link href="/stylesheets/random.styles" media="screen" rel="Stylesheet" type="text/css" />\n<link href="/css/stylish.css" media="screen" rel="Stylesheet" type="text/css" />) } |