[前][次][番号順一覧][スレッド一覧]

ruby-changes:30168

From: naruse <ko1@a...>
Date: Mon, 29 Jul 2013 05:28:00 +0900 (JST)
Subject: [ruby-changes:30168] naruse:r42220 (trunk): add assert_not_empty ENV['USER']

naruse	2013-07-29 05:27:50 +0900 (Mon, 29 Jul 2013)

  New Revision: 42220

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42220

  Log:
    add assert_not_empty ENV['USER']

  Modified files:
    trunk/test/ruby/test_file_exhaustive.rb

Index: test/ruby/test_file_exhaustive.rb
===================================================================
--- test/ruby/test_file_exhaustive.rb	(revision 42219)
+++ test/ruby/test_file_exhaustive.rb	(revision 42220)
@@ -671,6 +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)
     assert_equal(ENV['HOME'], File.expand_path("~#{user}"))
   end unless DRIVE
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]