diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-09 07:21:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-09 07:21:50 +0000 |
commit | 56486e00ecd02007787620e814c991f94d68ff49 (patch) | |
tree | ad318ee95563d9b2524fcdd6572d02504600a141 /test/ruby/test_env.rb | |
parent | f4c52b483cb4794e3e0e526a084cdbd32da8086c (diff) |
test_{env,hash}.rb: descriptive assertions
* test/ruby/test_{env,hash}.rb: use descriptive assertions than plain
assert.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_env.rb')
-rw-r--r-- | test/ruby/test_env.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/ruby/test_env.rb b/test/ruby/test_env.rb index ced00c30cc..618be37214 100644 --- a/test/ruby/test_env.rb +++ b/test/ruby/test_env.rb @@ -270,15 +270,15 @@ class TestEnv < Test::Unit::TestCase def test_empty_p ENV.clear - assert(ENV.empty?) + assert_predicate(ENV, :empty?) ENV["test"] = "foo" - assert(!ENV.empty?) + assert_not_predicate(ENV, :empty?) end def test_has_key - assert(!ENV.has_key?("test")) + assert_not_send([ENV, :has_key?, "test"]) ENV["test"] = "foo" - assert(ENV.has_key?("test")) + assert_send([ENV, :has_key?, "test"]) assert_raise(ArgumentError) { ENV.has_key?("foo\0bar") } end @@ -298,9 +298,9 @@ class TestEnv < Test::Unit::TestCase def test_has_value2 ENV.clear - assert(!ENV.has_value?("foo")) + assert_not_send([ENV, :has_value?, "foo"]) ENV["test"] = "foo" - assert(ENV.has_value?("foo")) + assert_send([ENV, :has_value?, "foo"]) end def test_rassoc |