Skip to content
This repository
Browse code

Tighten up asset precompile tests

  • Loading branch information...
commit 1dc2ea8f3dfc1cce1958bd661c641ed345adf910 1 parent 7758298
Jeremy Kemper authored October 12, 2012
5  railties/test/application/asset_debugging_test.rb
@@ -36,9 +36,8 @@ def teardown
36 36
     test "assets are concatenated when debug is off and compile is off either if debug_assets param is provided" do
37 37
       # config.assets.debug and config.assets.compile are false for production environment
38 38
       ENV["RAILS_ENV"] = "production"
39  
-      capture(:stdout) do
40  
-        Dir.chdir(app_path){ `bundle exec rake assets:precompile` }
41  
-      end
  39
+      output = Dir.chdir(app_path){ `bundle exec rake assets:precompile --trace 2>&1` }
  40
+      assert $?.success?, output
42 41
       require "#{app_path}/config/environment"
43 42
 
44 43
       class ::PostsController < ActionController::Base ; end
2  railties/test/application/assets_test.rb
@@ -18,7 +18,7 @@ def teardown
18 18
 
19 19
     def precompile!(env = nil)
20 20
       quietly do
21  
-        precompile_task = "bundle exec rake assets:precompile #{env} 2>&1"
  21
+        precompile_task = "bundle exec rake assets:precompile #{env} --trace 2>&1"
22 22
         output = Dir.chdir(app_path) { %x[ #{precompile_task} ] }
23 23
         assert $?.success?, output
24 24
         output

0 notes on commit 1dc2ea8

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