diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2021-05-30 23:57:09 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2021-05-31 01:43:23 -0600 |
| commit | c99153748c06e48ea7eba529ce0038f0519bfdfc (patch) | |
| tree | 851b20ee929cf2a38e7336e79d65ba61eac8b89b /test/paths_test.rb | |
| parent | 7440a1b72db7168e024da6244e9b6aab970b0566 (diff) | |
use appropriate assertions in test suite
- assert_equal instead of ==
- assert instead of assert_equal true
- refute instead of assert_equal false
- specify literal value as first argument to assert_equal
Diffstat (limited to 'test/paths_test.rb')
| -rw-r--r-- | test/paths_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/paths_test.rb b/test/paths_test.rb index 53576538..06a885df 100644 --- a/test/paths_test.rb +++ b/test/paths_test.rb @@ -275,11 +275,11 @@ context 'Path Resolver' do end test 'File.dirname preserves UNC path root on Windows', if: windows? do - assert_equal File.dirname('\\\\server\\docs\\file.html'), '\\\\server\\docs' + assert_equal '\\\\server\\docs', File.dirname('\\\\server\\docs\\file.html') end test 'File.dirname preserves posix-style UNC path root on Windows', if: windows? do - assert_equal File.dirname('//server/docs/file.html'), '//server/docs' + assert_equal '//server/docs', File.dirname('//server/docs/file.html') end test 'resolves UNC path if start is absolute and target is relative' do |
