skip if ENV['USER'] is nil
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
628eb56763
commit
a0320f8e26
@ -671,7 +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)
|
skip "ENV['USER'] is not set" unless 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