Skip to content
Browse files

Minor test refactoring: Use add_to_env instead of an initializer

  • Loading branch information...
1 parent 8815de7 commit 39928c8db23ce555360f866f21ccedfc49bc95d3 @guilleiguaran guilleiguaran committed Oct 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/test/application/asset_debugging_test.rb
View
2 railties/test/application/asset_debugging_test.rb
@@ -50,7 +50,7 @@ class ::PostsController < ActionController::Base ; end
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"

0 comments on commit 39928c8

Please sign in to comment.
Something went wrong with that request. Please try again.