aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-08-24 07:46:04 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2011-08-24 07:46:04 -0700
commit23d8a980d24e8969dc71500378055dfedc9286ca (patch)
tree1a8cd68d12c76879fdbf291ceb7abad3782e750d /actionpack/test
parent52207ecc81816140c05d216164aa745cf652f3b3 (diff)
parentd133fd6d290a4812a17cc58c0d7e5cd3895e23f6 (diff)
downloadrails-23d8a980d24e8969dc71500378055dfedc9286ca.tar.gz
rails-23d8a980d24e8969dc71500378055dfedc9286ca.tar.bz2
rails-23d8a980d24e8969dc71500378055dfedc9286ca.zip
Merge pull request #2668 from guilleiguaran/debug-assets-media-type
Debug assets shouldn't ignore media type for stylesheets. Closes #2625
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/sprockets_helper_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/test/template/sprockets_helper_test.rb b/actionpack/test/template/sprockets_helper_test.rb
index cac277cf11..b5a0e6cf04 100644
--- a/actionpack/test/template/sprockets_helper_test.rb
+++ b/actionpack/test/template/sprockets_helper_test.rb
@@ -200,6 +200,9 @@ class SprocketsHelperTest < ActionView::TestCase
@config.assets.debug = true
assert_match %r{<link href="/assets/style-[0-9a-f]+.css\?body=1" media="screen" rel="stylesheet" type="text/css" />\n<link href="/assets/application-[0-9a-f]+.css\?body=1" media="screen" rel="stylesheet" type="text/css" />},
stylesheet_link_tag(:application)
+
+ assert_match %r{<link href="/assets/style-[0-9a-f]+.css\?body=1" media="print" rel="stylesheet" type="text/css" />\n<link href="/assets/application-[0-9a-f]+.css\?body=1" media="print" rel="stylesheet" type="text/css" />},
+ stylesheet_link_tag(:application, :media => "print")
end
test "alternate asset prefix" do