From dacb61c8ca37154e9a813abc964df7f7973cea97 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 3 May 2005 14:39:57 +0000 Subject: Added that both AssetHelper#stylesheet_link_tag and AssetHelper#javascript_include_tag now accept an option hash as the last parameter, so you can do stuff like: stylesheet_link_tag "style", :media => "all" git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1281 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/template/asset_tag_helper_test.rb | 2 ++ 1 file changed, 2 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 3d04abde67..9ceec5b040 100644 --- a/actionpack/test/template/asset_tag_helper_test.rb +++ b/actionpack/test/template/asset_tag_helper_test.rb @@ -35,6 +35,7 @@ class AssetTagHelperTest < Test::Unit::TestCase JavascriptIncludeToTag = { %(javascript_include_tag("xmlhr")) => %(), + %(javascript_include_tag("xmlhr", :lang => "vbscript")) => %(), %(javascript_include_tag("common.javascript", "/elsewhere/cools")) => %(\n), } @@ -44,6 +45,7 @@ class AssetTagHelperTest < Test::Unit::TestCase StyleLinkToTag = { %(stylesheet_link_tag("style")) => %(), + %(stylesheet_link_tag("style", :media => "all")) => %(), %(stylesheet_link_tag("random.styles", "/css/stylish")) => %(\n) } -- cgit v1.2.3