aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorDiego Carrion <dc.rec1@gmail.com>2015-06-17 13:53:19 -0300
committerDiego Carrion <dcrec1@mbp.home>2015-06-18 11:59:47 -0300
commit6074d0f6d30bf3be8c6d73f336be6d21115c2f75 (patch)
treecfbd02cd310231a9b6a398ac7b806afb49857a4b /railties/lib/rails
parentba7377e8176315e7ac6ba1c24b2479925dc37cde (diff)
downloadrails-6074d0f6d30bf3be8c6d73f336be6d21115c2f75.tar.gz
rails-6074d0f6d30bf3be8c6d73f336be6d21115c2f75.tar.bz2
rails-6074d0f6d30bf3be8c6d73f336be6d21115c2f75.zip
assert_file understands paths with special characters
fixes #20042
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/generators/testing/assertions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/testing/assertions.rb b/railties/lib/rails/generators/testing/assertions.rb
index bd069e4bd0..17af6eddfa 100644
--- a/railties/lib/rails/generators/testing/assertions.rb
+++ b/railties/lib/rails/generators/testing/assertions.rb
@@ -23,7 +23,7 @@ module Rails
# end
# end
def assert_file(relative, *contents)
- absolute = File.expand_path(relative, destination_root).shellescape
+ absolute = File.expand_path(relative, destination_root)
assert File.exist?(absolute), "Expected file #{relative.inspect} to exist, but does not"
read = File.read(absolute) if block_given? || !contents.empty?