From 39928c8db23ce555360f866f21ccedfc49bc95d3 Mon Sep 17 00:00:00 2001 From: Guillermo Iguaran Date: Tue, 9 Oct 2012 11:51:29 -0500 Subject: Minor test refactoring: Use add_to_env instead of an initializer --- railties/test/application/asset_debugging_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties') diff --git a/railties/test/application/asset_debugging_test.rb b/railties/test/application/asset_debugging_test.rb index ecacb34cb2..ebafc7d670 100644 --- a/railties/test/application/asset_debugging_test.rb +++ b/railties/test/application/asset_debugging_test.rb @@ -50,7 +50,7 @@ module ApplicationTests end test "assets aren't concatened when compile is true is on and debug_assets params is true" do - app_file "config/initializers/compile.rb", "Rails.application.config.assets.compile = true" + add_to_env_config "production", "config.assets.compile = true" ENV["RAILS_ENV"] = "production" require "#{app_path}/config/environment" -- cgit v1.2.3 From 69b1716d2366fe425a21efaecace64c73fa4a5fc Mon Sep 17 00:00:00 2001 From: Guillermo Iguaran Date: Tue, 9 Oct 2012 11:51:44 -0500 Subject: Remove duplicated test --- railties/test/application/assets_test.rb | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'railties') diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb index 12223287ba..be97855e1a 100644 --- a/railties/test/application/assets_test.rb +++ b/railties/test/application/assets_test.rb @@ -396,21 +396,6 @@ module ApplicationTests assert_no_match(/