diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-01-10 16:33:26 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-01-10 16:34:13 -0200 |
commit | 3375a093e91dfee7a0e4264cbf746363a7e50f54 (patch) | |
tree | f0db49c30cef2680968d917e7c596247698210ea /railties/test/application | |
parent | d65b76642637928f64c9aa092e305238eb3b6f4f (diff) | |
download | rails-3375a093e91dfee7a0e4264cbf746363a7e50f54.tar.gz rails-3375a093e91dfee7a0e4264cbf746363a7e50f54.tar.bz2 rails-3375a093e91dfee7a0e4264cbf746363a7e50f54.zip |
Rails initialization with initialize_on_precompile = false should set assets_dir
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/assets_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb index cc5695091b..ad9e68adae 100644 --- a/railties/test/application/assets_test.rb +++ b/railties/test/application/assets_test.rb @@ -427,6 +427,12 @@ module ApplicationTests assert_equal "NoPost;\n", File.read("#{app_path}/public/assets/application.js") end + test "initialization on the assets group should set assets_dir" do + require "#{app_path}/config/application" + Rails.application.initialize!(:assets) + assert_not_nil Rails.application.config.action_controller.assets_dir + end + test "enhancements to assets:precompile should only run once" do app_file "lib/tasks/enhance.rake", "Rake::Task['assets:precompile'].enhance { puts 'enhancement' }" output = precompile! |