aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-09-12 10:18:19 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2011-09-12 10:18:19 -0700
commitd762e22c048ac67979fec7ecfb71bd999a1004d9 (patch)
tree7fe3edeebdb9e59c7e897812cdaeb1b377735225 /railties/test
parent8397a564cb03dec8bd3d083f3376ecdd439dbb70 (diff)
parent3ce830272ee0516eb864a5765abba25d4b07cca4 (diff)
downloadrails-d762e22c048ac67979fec7ecfb71bd999a1004d9.tar.gz
rails-d762e22c048ac67979fec7ecfb71bd999a1004d9.tar.bz2
rails-d762e22c048ac67979fec7ecfb71bd999a1004d9.zip
Merge pull request #2985 from kennyj/master
fix https://github.com/rails/rails/issues/2582 (with testcase)
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/application/rake_test.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/railties/test/application/rake_test.rb b/railties/test/application/rake_test.rb
index 3183162e6c..81eb7e7b24 100644
--- a/railties/test/application/rake_test.rb
+++ b/railties/test/application/rake_test.rb
@@ -1,3 +1,4 @@
+# coding:utf-8
require "isolation/abstract_unit"
module ApplicationTests
@@ -200,5 +201,20 @@ module ApplicationTests
assert_match(/7 tests, 10 assertions, 0 failures, 0 errors/, content)
end
+
+ def test_assets_precompile_with_utf8_filename
+ add_to_config <<-RUBY
+ config.assets.precompile = [ /\.png$$/, /application.(css|js)$/ ]
+ RUBY
+
+ Dir.chdir(app_path) do
+ `cp app/assets/images/rails.png app/assets/images/レイルズ.png`
+ `rake assets:precompile`
+ open("public/assets/manifest.yml") do |f|
+ assert_match(/レイルズ.png/, f.read)
+ end
+ end
+ end
+
end
end