diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-09-21 19:51:08 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-09-21 19:51:08 -0700 |
commit | 7be880980dd8bedb3a77547b5b3154dcb927799c (patch) | |
tree | 5b2b2396f85baedbbdc26c2a05468a953dc9d3d4 /railties/test/application/assets_test.rb | |
parent | ec28c059b76702254f64989f04b29be4ac3f39fd (diff) | |
parent | fd8b9bee47799af3b112e9d92d50739cec43da63 (diff) | |
download | rails-7be880980dd8bedb3a77547b5b3154dcb927799c.tar.gz rails-7be880980dd8bedb3a77547b5b3154dcb927799c.tar.bz2 rails-7be880980dd8bedb3a77547b5b3154dcb927799c.zip |
Merge pull request #7728 from guilleiguaran/fix-asset-test
Update asset test to match one in sprockets-rails
Diffstat (limited to 'railties/test/application/assets_test.rb')
-rw-r--r-- | railties/test/application/assets_test.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb index 12466d4187..6e9ae6b74e 100644 --- a/railties/test/application/assets_test.rb +++ b/railties/test/application/assets_test.rb @@ -236,6 +236,7 @@ module ApplicationTests test "assets raise AssetNotPrecompiledError when manifest file is present and requested file isn't precompiled if digest is disabled" do app_file "app/views/posts/index.html.erb", "<%= javascript_include_tag 'app' %>" add_to_config "config.assets.compile = false" + add_to_config "config.assets.digest = false" app_file "config/routes.rb", <<-RUBY AppTemplate::Application.routes.draw do @@ -243,14 +244,16 @@ module ApplicationTests end RUBY - ENV["RAILS_ENV"] = "development" + ENV["RAILS_ENV"] = "production" precompile! # Create file after of precompile app_file "app/assets/javascripts/app.js", "alert();" require "#{app_path}/config/environment" - class ::PostsController < ActionController::Base ; end + class ::PostsController < ActionController::Base + def show_detailed_exceptions?() true end + end get '/posts' assert_match(/AssetNotPrecompiledError/, last_response.body) |