diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-07 13:26:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-07 13:26:12 +0000 |
commit | 08e74bfa2c61c1c7c1dbfe7b7a0b90ed19da723b (patch) | |
tree | 9089dbc343b0f3748214048d51d4db6640919e8d /test/drb/drbtest.rb | |
parent | fb979b4532b1327044f49ed46cbb9b425757df68 (diff) | |
download | ruby-08e74bfa2c61c1c7c1dbfe7b7a0b90ed19da723b.tar.gz |
use dedicated assertions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/drb/drbtest.rb')
-rw-r--r-- | test/drb/drbtest.rb | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/test/drb/drbtest.rb b/test/drb/drbtest.rb index 40ef35ef2e..cc7063c39e 100644 --- a/test/drb/drbtest.rb +++ b/test/drb/drbtest.rb @@ -124,10 +124,10 @@ module DRbCore ary = @there.to_a assert_kind_of(DRb::DRbObject, ary) - assert(@there.respond_to?(:to_a, true)) - assert(@there.respond_to?(:eval, true)) - assert(! @there.respond_to?(:eval, false)) - assert(! @there.respond_to?(:eval)) + assert_respond_to(@there, [:to_a, true]) + assert_respond_to(@there, [:eval, true]) + assert_not_respond_to(@there, [:eval, false]) + assert_not_respond_to(@there, :eval) end def test_01_02_loop @@ -171,20 +171,19 @@ module DRbCore def test_04 assert_respond_to(@there, 'sum') - assert(!(@there.respond_to? "foobar")) + assert_not_respond_to(@there, "foobar") end def test_05_eq a = @there.to_a[0] b = @there.to_a[0] - assert(a.object_id != b.object_id) - assert(a == b) + assert_not_same(a, b) assert_equal(a, b) - assert(a == @there) + assert_equal(a, @there) assert_equal(a.hash, b.hash) assert_equal(a.hash, @there.hash) - assert(a.eql?(b)) - assert(a.eql?(@there)) + assert_operator(a, :eql?, b) + assert_operator(a, :eql?, @there) end def test_06_timeout |