diff options
author | José Valim <jose.valim@gmail.com> | 2011-09-24 03:05:36 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-09-24 03:17:49 +0200 |
commit | e69011521da0a9d4559436da21ea030465e54d08 (patch) | |
tree | f77a1494a3533bf70a6340a7cfd6d508e942b905 /railties/test/application | |
parent | e9b02ae27a837d7ba02681e225590f55ce02af8c (diff) | |
download | rails-e69011521da0a9d4559436da21ea030465e54d08.tar.gz rails-e69011521da0a9d4559436da21ea030465e54d08.tar.bz2 rails-e69011521da0a9d4559436da21ea030465e54d08.zip |
Avoid using pathnames and automatically create the manifest directory if one does not exist yet.
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/assets_test.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb index 85320ccba5..e9985fa643 100644 --- a/railties/test/application/assets_test.rb +++ b/railties/test/application/assets_test.rb @@ -123,7 +123,6 @@ module ApplicationTests add_to_config "config.assets.digest = true" precompile! - manifest = "#{app_path}/public/assets/manifest.yml" assets = YAML.load_file(manifest) @@ -137,10 +136,8 @@ module ApplicationTests # digest is default in false, we must enable it for test environment add_to_config "config.assets.digest = true" add_to_config "config.assets.manifest = '#{app_path}/shared'" - FileUtils.mkdir "#{app_path}/shared" precompile! - manifest = "#{app_path}/shared/manifest.yml" assets = YAML.load_file(manifest) @@ -148,7 +145,6 @@ module ApplicationTests assert_match(/application-([0-z]+)\.css/, assets["application.css"]) end - test "the manifest file should be saved by default in the same assets folder" do app_file "app/assets/javascripts/application.js", "alert();" # digest is default in false, we must enable it for test environment |