diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-01-03 17:49:11 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-01-03 17:51:10 -0200 |
commit | 8c129f18d2f3fdacfb932ef9bfa52604084a670f (patch) | |
tree | 323c9d5f4f48f92498b22a4c7a4a7d00098f3a75 /actionpack/test/template/sprockets_helper_test.rb | |
parent | 124536ed9bb843ef81f833006a6a151ab2a94047 (diff) | |
download | rails-8c129f18d2f3fdacfb932ef9bfa52604084a670f.tar.gz rails-8c129f18d2f3fdacfb932ef9bfa52604084a670f.tar.bz2 rails-8c129f18d2f3fdacfb932ef9bfa52604084a670f.zip |
Pass extensions to javascript_path and stylesheet_path helpers. Closes #3417
Diffstat (limited to 'actionpack/test/template/sprockets_helper_test.rb')
-rw-r--r-- | actionpack/test/template/sprockets_helper_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ -158,6 +158,9 @@ class SprocketsHelperTest < ActionView::TestCase 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") assert_match %r{/assets/application-[0-9a-f]+.js}, @@ -166,6 +169,9 @@ class SprocketsHelperTest < ActionView::TestCase 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") assert_match %r{/assets/application-[0-9a-f]+.css}, |