summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-28 20:27:50 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-28 20:27:50 +0000
commitfc0511f412fee6ee6388c6b267abd8bf45d8fd58 (patch)
treed2ce491e1498c6bdb15245a34e81193f0b0b6029 /test
parent77763b513a7ae3cec73ed34d698641120e473fd2 (diff)
add assert_not_empty ENV['USER']
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_file_exhaustive.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb
index 2e563e53a89..b6090d009cb 100644
--- a/test/ruby/test_file_exhaustive.rb
+++ b/test/ruby/test_file_exhaustive.rb
@@ -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