From 1e87d6e887639650e23db5fbba0ccdf0536f289c Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Wed, 28 Sep 2005 02:08:58 +0000 Subject: 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 --- actionpack/test/template/asset_tag_helper_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack/test/template/asset_tag_helper_test.rb') 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")) => %(), + %(stylesheet_link_tag("/dir/file")) => %(), + %(stylesheet_link_tag("dir/file")) => %(), %(stylesheet_link_tag("style", :media => "all")) => %(), %(stylesheet_link_tag("random.styles", "/css/stylish")) => %(\n) } -- cgit v1.2.3