From b47970294e53ed9142ed16a560a8f68b1ae1b5d0 Mon Sep 17 00:00:00 2001 From: schneems Date: Sun, 21 Aug 2016 14:08:24 -0500 Subject: Favor `public_folder: true` over `public_*` Adding all those `public_*` methods is a bit heavy handed, we can change the API to instead use `public_folder: true`. Change was pretty easy since it was already implemented that way. --- railties/test/application/asset_debugging_test.rb | 69 +++++++++++++++-------- 1 file changed, 44 insertions(+), 25 deletions(-) (limited to 'railties/test') diff --git a/railties/test/application/asset_debugging_test.rb b/railties/test/application/asset_debugging_test.rb index 1d27cecd3c..e6a660cf25 100644 --- a/railties/test/application/asset_debugging_test.rb +++ b/railties/test/application/asset_debugging_test.rb @@ -72,23 +72,23 @@ module ApplicationTests test "public path and tag methods are not over-written by the asset pipeline" do contents = "doesnotexist" cases = { - public_asset_path: %r{/#{ contents }}, - public_image_path: %r{/images/#{ contents }}, - public_video_path: %r{/videos/#{ contents }}, - public_audio_path: %r{/audios/#{ contents }}, - public_font_path: %r{/fonts/#{ contents }}, - public_javascript_path: %r{/javascripts/#{ contents }}, - public_stylesheet_path: %r{/stylesheets/#{ contents }}, - public_image_tag: %r{}, - public_stylesheet_link_tag: %r{}, - public_javascript_include_tag: %r{