diff options
| author | Dan Allen <dallen@redhat.com> | 2013-05-16 00:33:26 -0600 |
|---|---|---|
| committer | Dan Allen <dallen@redhat.com> | 2013-05-16 00:33:26 -0600 |
| commit | 2d9047a66e10dc7d16859be87edb68e50d92b4fc (patch) | |
| tree | ca52f614f16dbc4cda83cc8311c389e18d339fd3 /test/paths_test.rb | |
| parent | 840060fdb4d5d7ba7e2fe50278a6cf1e693e615c (diff) | |
resolves #330 fix file path resolution on windows
- check for proper separator on Windows
- force all paths to use forward slash (posix), as Ruby can handle it
Diffstat (limited to 'test/paths_test.rb')
| -rw-r--r-- | test/paths_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/paths_test.rb b/test/paths_test.rb index e5b91663..3940c384 100644 --- a/test/paths_test.rb +++ b/test/paths_test.rb @@ -166,9 +166,9 @@ context 'Path Resolver' do test 'resolves windows paths when file separator is backlash' do @resolver.file_separator = '\\' - assert_equal 'C:\\data\\docs', @resolver.system_path('..', "C:\\data\\docs\\assets", 'C:\\data\\docs') - assert_equal 'C:\\data\\docs', @resolver.system_path('..\\..', "C:\\data\\docs\\assets", 'C:\\data\\docs') - assert_equal 'C:\\data\\docs\\css', @resolver.system_path('..\\..\\css', "C:\\data\\docs\\assets", 'C:\\data\\docs') + assert_equal 'C:/data/docs', @resolver.system_path('..', "C:\\data\\docs\\assets", 'C:\\data\\docs') + assert_equal 'C:/data/docs', @resolver.system_path('..\\..', "C:\\data\\docs\\assets", 'C:\\data\\docs') + assert_equal 'C:/data/docs/css', @resolver.system_path('..\\..\\css', "C:\\data\\docs\\assets", 'C:\\data\\docs') end end end |
