From 8c129f18d2f3fdacfb932ef9bfa52604084a670f Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 3 Jan 2012 17:49:11 -0200 Subject: Pass extensions to javascript_path and stylesheet_path helpers. Closes #3417 --- actionpack/test/template/sprockets_helper_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'actionpack/test') diff --git a/actionpack/test/template/sprockets_helper_test.rb b/actionpack/test/template/sprockets_helper_test.rb index fb472cfbe5..1c591bdcc2 100644 --- a/actionpack/test/template/sprockets_helper_test.rb +++ b/actionpack/test/template/sprockets_helper_test.rb @@ -157,6 +157,9 @@ class SprocketsHelperTest < ActionView::TestCase end test "javascript_path" do + assert_match %r{/assets/application-[0-9a-f]+.js}, + javascript_path("application") + assert_match %r{/assets/application-[0-9a-f]+.js}, javascript_path("application.js") @@ -165,6 +168,9 @@ class SprocketsHelperTest < ActionView::TestCase end test "stylesheet_path" do + assert_match %r{/assets/application-[0-9a-f]+.css}, + stylesheet_path("application") + assert_match %r{/assets/application-[0-9a-f]+.css}, stylesheet_path("application.css") -- cgit v1.2.3