aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-09-26 13:50:20 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2011-09-26 13:54:06 -0300
commit17882d2a9e8e93a5f6dbe2278deb73269fff30c9 (patch)
tree5b96280b74efb37108f860458ce93a52eb1412ba /railties/test/application
parent89e98e278abe8564b80953855fcb4bcb9871c51c (diff)
downloadrails-17882d2a9e8e93a5f6dbe2278deb73269fff30c9.tar.gz
rails-17882d2a9e8e93a5f6dbe2278deb73269fff30c9.tar.bz2
rails-17882d2a9e8e93a5f6dbe2278deb73269fff30c9.zip
Copy assets to nondigested filenames too
Diffstat (limited to 'railties/test/application')
-rw-r--r--railties/test/application/assets_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb
index e9985fa643..12466a3296 100644
--- a/railties/test/application/assets_test.rb
+++ b/railties/test/application/assets_test.rb
@@ -63,7 +63,9 @@ module ApplicationTests
precompile!
files = Dir["#{app_path}/public/assets/application-*.js"]
+ files << Dir["#{app_path}/public/assets/application.js"].first
files << Dir["#{app_path}/public/assets/foo/application-*.js"].first
+ files << Dir["#{app_path}/public/assets/foo/application.js"].first
files.each do |file|
assert_not_nil file, "Expected application.js asset to be generated, but none found"
assert_equal "alert()", File.read(file)