aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/railties
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/test/railties
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/test/railties')
-rw-r--r--railties/test/railties/generators_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/test/railties/generators_test.rb b/railties/test/railties/generators_test.rb
index 423ece277e..b88815cbbe 100644
--- a/railties/test/railties/generators_test.rb
+++ b/railties/test/railties/generators_test.rb
@@ -122,5 +122,13 @@ module RailtiesTests
assert_no_file "app/helpers/foo_bar/topics_helper.rb"
end
end
+
+ def test_assert_file_founds_files_with_special_characters
+ path = "#{app_path}/tmp"
+ file_name = "#{path}/v0.1.4~alpha+nightly"
+ FileUtils.mkdir_p path
+ FileUtils.touch file_name
+ assert_file file_name
+ end
end
end