diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb index 2dcb74bb9f3a94c3d1f7161b97f04a5fdbf2adfd..39da891661d7694b851ee3416c436e600ddcd56a 100644 --- a/railties/test/application/assets_test.rb +++ b/railties/test/application/assets_test.rb @@ -249,14 +249,14 @@ class User < ActiveRecord::Base; raise 'should not be reached'; end end test "the manifest file should be saved by default in the same assets folder" do - app_file "app/assets/javascripts/application.js", "alert();" + app_file "app/assets/stylesheets/test.css", "a{color: red}" add_to_config "config.assets.prefix = '/x'" precompile! manifest = Dir["#{app_path}/public/x/.sprockets-manifest-*.json"].first assets = ActiveSupport::JSON.decode(File.read(manifest)) - assert_match(/application-([0-z]+)\.js/, assets["assets"]["application.js"]) + assert_match(/test-([0-z]+)\.css/, assets["assets"]["test.css"]) end test "assets do not require any assets group gem when manifest file is present" do