Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #808 from kostya/expand_path
fix File.expand_path
- Loading branch information
Showing
with
21 additions
and 25 deletions.
@@ -1,19 +1,4 @@ | ||
fails:File.expand_path expand path with | ||
fails:File.expand_path expand_path for commoms unix path give a full path | ||
fails:File.expand_path does not replace multiple '/' at the beginning of the path | ||
fails:File.expand_path replaces multiple '/' with a single '/' | ||
fails:File.expand_path raises an ArgumentError if the path is not valid | ||
fails:File.expand_path expands ~ENV['USER'] to the user's home directory | ||
fails:File.expand_path does not expand ~ENV['USER'] when it's not at the start | ||
fails:File.expand_path expands ../foo with ~/dir as base dir to /path/to/user/home/foo | ||
fails:File.expand_path accepts objects that have a #to_path method | ||
fails:File.expand_path raises a TypeError if not passed a String type | ||
fails:File.expand_path expands /./dir to /dir | ||
fails:File.expand_path produces a String in the default external encoding | ||
fails:File.expand_path does not modify the string argument | ||
fails:File.expand_path does not modify a HOME string argument | ||
fails:File.expand_path returns a String when passed a String subclass | ||
fails:File.expand_path when HOME is not set raises an ArgumentError when passed '~' if HOME is nil | ||
fails:File.expand_path when HOME is not set raises an ArgumentError when passed '~/' if HOME is nil | ||
fails:File.expand_path when HOME is not set raises an ArgumentError when passed '~' if HOME == '' | ||
fails:File.expand_path raises an Encoding::CompatibilityError if the external encoding is not compatible | ||
fails:File.expand_path raises an ArgumentError if the path is not valid | ||
fails:File.expand_path expands ~ENV['USER'] to the user's home directory |