diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2017-09-23 00:21:56 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2017-09-23 00:21:56 -0600 |
| commit | f7c43c4a2169aa6c140ea7424f6a9636e1f9319e (patch) | |
| tree | 769ecd0555cefe8d4265fdc1c0be1705cc97eade /test/paths_test.rb | |
| parent | 9a50c096621dfecfa0f926cf6b3e5a87f864b48b (diff) | |
set file separator correctly for windows path tests
Diffstat (limited to 'test/paths_test.rb')
| -rw-r--r-- | test/paths_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/paths_test.rb b/test/paths_test.rb index 84210522..46a0ba42 100644 --- a/test/paths_test.rb +++ b/test/paths_test.rb @@ -89,6 +89,7 @@ context 'Path Resolver' do end test 'posixifies windows paths' do + @resolver.file_separator = '\\' assert_equal '/images', @resolver.web_path('\\images') assert_equal '../images', @resolver.web_path('..\\images') assert_equal '/images', @resolver.web_path('\\..\\images') @@ -221,6 +222,7 @@ context 'Path Resolver' do end test 'posixifies windows paths' do + @resolver.file_separator = '\\' assert_equal "#{JAIL}/assets/css", @resolver.system_path('..\\css', 'assets\\stylesheets', JAIL) end |
