From 0621ecb20bd76a3d294fbbed73e54fe81a3cb6d2 Mon Sep 17 00:00:00 2001 From: Jorge Bejar Date: Thu, 3 May 2012 19:07:03 -0300 Subject: Make sure that javascript_include_tag/stylesheet_link_tag methods in sprockets/helpers/rails_helper.rb discard duplicated assets --- actionpack/test/template/sprockets_helper_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'actionpack/test/template') diff --git a/actionpack/test/template/sprockets_helper_test.rb b/actionpack/test/template/sprockets_helper_test.rb index 1c591bdcc2..fc3c87a72e 100644 --- a/actionpack/test/template/sprockets_helper_test.rb +++ b/actionpack/test/template/sprockets_helper_test.rb @@ -254,6 +254,9 @@ class SprocketsHelperTest < ActionView::TestCase assert_match %r{}, javascript_include_tag('jquery.plugin', :digest => false) + assert_match %r{\A\Z}, + javascript_include_tag("xmlhr", "xmlhr") + @config.assets.compile = true @config.assets.debug = true assert_match %r{}, @@ -301,6 +304,9 @@ class SprocketsHelperTest < ActionView::TestCase assert_match %r{\n}, stylesheet_link_tag(:application, :debug => true) + assert_match %r{\A\Z}, + stylesheet_link_tag("style", "style") + @config.assets.compile = true @config.assets.debug = true assert_match %r{}, -- cgit v1.2.3