add assert_not_empty ENV['USER']

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-07-28 20:27:50 +00:00
parent 77763b513a
commit fc0511f412

View File

@ -671,6 +671,7 @@ class TestFileExhaustive < Test::Unit::TestCase
def test_expand_path_for_existent_username
user = ENV['USER']
assert_not_empty(user)
assert_equal(ENV['HOME'], File.expand_path("~#{user}"))
end unless DRIVE