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:
parent
77763b513a
commit
fc0511f412
@ -671,6 +671,7 @@ class TestFileExhaustive < Test::Unit::TestCase
|
|||||||
|
|
||||||
def test_expand_path_for_existent_username
|
def test_expand_path_for_existent_username
|
||||||
user = ENV['USER']
|
user = ENV['USER']
|
||||||
|
assert_not_empty(user)
|
||||||
assert_equal(ENV['HOME'], File.expand_path("~#{user}"))
|
assert_equal(ENV['HOME'], File.expand_path("~#{user}"))
|
||||||
end unless DRIVE
|
end unless DRIVE
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user