summaryrefslogtreecommitdiff
path: root/test/ruby/test_path.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_path.rb')
-rw-r--r--test/ruby/test_path.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/ruby/test_path.rb b/test/ruby/test_path.rb
index b35e942a2a..64111ee805 100644
--- a/test/ruby/test_path.rb
+++ b/test/ruby/test_path.rb
@@ -239,11 +239,7 @@ class TestPath < Test::Unit::TestCase
ext = '.'
end
assert_equal(ext, File.extname('a.rb.'))
- if /mswin|bccwin|mingw/ =~ RUBY_PLATFORM
- # trailing spaces and dots are ignored on NTFS.
- ext = ''
- end
- assert_equal(ext, File.extname('a.'))
+ assert_equal('.', File.extname('a.'))
assert_equal('', File.extname('.x'))
assert_equal('', File.extname('..x'))
end