aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-09-20 19:47:14 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-09-20 19:47:14 -0300
commit9d07aceb504c0730d5777624d1c3ff77addc61a0 (patch)
treea067d49b8cddbcf54d0c86f594605b8ec6e5344e
parent54f55746a70a7091341e84236498203118a7fbb4 (diff)
downloadrails-9d07aceb504c0730d5777624d1c3ff77addc61a0.tar.gz
rails-9d07aceb504c0730d5777624d1c3ff77addc61a0.tar.bz2
rails-9d07aceb504c0730d5777624d1c3ff77addc61a0.zip
Explictly set the assets digest option to false
-rw-r--r--railties/test/application/assets_test.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb
index 6e638ed85f..5a1df5d330 100644
--- a/railties/test/application/assets_test.rb
+++ b/railties/test/application/assets_test.rb
@@ -243,6 +243,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
@@ -250,14 +251,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)