summaryrefslogtreecommitdiff
path: root/test/ruby/test_env.rb
diff options
context:
space:
mode:
authortarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-06 04:27:29 +0000
committertarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-06 04:27:29 +0000
commit6ae881af48b578f2f2ffd4248991ddb4534e8d54 (patch)
tree80161e65d92d051e1707f7b13753859042944320 /test/ruby/test_env.rb
parent28754d0aa9a61d401fad2791deda139338ba2df0 (diff)
* test/ruby/test_env.rb (class TestEnv): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_env.rb')
-rw-r--r--test/ruby/test_env.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_env.rb b/test/ruby/test_env.rb
index caa85d396d..060c50e68e 100644
--- a/test/ruby/test_env.rb
+++ b/test/ruby/test_env.rb
@@ -49,7 +49,7 @@ class TestEnv < Test::Unit::TestCase
def test_has_value
val = 'a'
- val.succ! while ENV.has_value?(val) && ENV.has_value?(val.upcase)
+ val.succ! while ENV.has_value?(val) || ENV.has_value?(val.upcase)
ENV['test'] = val[0...-1]
assert_equal(false, ENV.has_value?(val))
@@ -64,7 +64,7 @@ class TestEnv < Test::Unit::TestCase
def test_key
val = 'a'
- val.succ! while ENV.has_value?(val) && ENV.has_value?(val.upcase)
+ val.succ! while ENV.has_value?(val) || ENV.has_value?(val.upcase)
ENV['test'] = val[0...-1]
assert_nil(ENV.key(val))