ruby-changes:30195
From: naruse <ko1@a...>
Date: Tue, 30 Jul 2013 10:02:56 +0900 (JST)
Subject: [ruby-changes:30195] naruse:r42247 (trunk): skip if ENV['USER'] is nil
naruse 2013-07-30 10:02:45 +0900 (Tue, 30 Jul 2013) New Revision: 42247 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42247 Log: skip if ENV['USER'] is nil Modified files: trunk/test/ruby/test_file_exhaustive.rb Index: test/ruby/test_file_exhaustive.rb =================================================================== --- test/ruby/test_file_exhaustive.rb (revision 42246) +++ test/ruby/test_file_exhaustive.rb (revision 42247) @@ -671,7 +671,7 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L671 def test_expand_path_for_existent_username user = ENV['USER'] - assert_not_empty(user) + skip "ENV['USER'] is not set" unless user assert_equal(ENV['HOME'], File.expand_path("~#{user}")) end unless DRIVE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/