diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-09-18 06:25:36 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-09-18 06:25:36 -0700 |
commit | 7c5454e555c3928604c9d4b753c7a8ff73378932 (patch) | |
tree | 68f8dacd5fe1cb44ba2db4561148ad8fc4eef827 /actionpack/test | |
parent | 24a77743b69b2a3452848f7d78afd2692b209a03 (diff) | |
parent | 1ac19c11792a745cd654f02dfaed8e93f95b3c70 (diff) | |
download | rails-7c5454e555c3928604c9d4b753c7a8ff73378932.tar.gz rails-7c5454e555c3928604c9d4b753c7a8ff73378932.tar.bz2 rails-7c5454e555c3928604c9d4b753c7a8ff73378932.zip |
Merge pull request #7672 from wagenet/asset_path_digest_fix
Respect `config.digest = false` for `asset_path`
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/sprockets_helper_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/test/template/sprockets_helper_test.rb b/actionpack/test/template/sprockets_helper_test.rb index b908b6777c..72d03e43e9 100644 --- a/actionpack/test/template/sprockets_helper_test.rb +++ b/actionpack/test/template/sprockets_helper_test.rb @@ -360,4 +360,12 @@ class SprocketsHelperTest < ActionView::TestCase assert_equal '/assets/logo.png', asset_path("logo.png") end + + test "`config.digest = false` works with `config.compile = false`" do + @config.assets.digest = false + @config.assets.compile = false + + assert_equal '/assets/logo.png', + asset_path("logo.png") + end end |