diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-08 15:26:05 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-08 15:26:05 +0000 |
commit | e14095fff2aed4599a69d8c53ee5ca017a6e8826 (patch) | |
tree | 4eab00aa4e1b38f3ea22c0db0140d5938e000c80 /test/ruby/marshaltestlib.rb | |
parent | 6f59a8b4a23b5e106b2e14981a2b9cc2628f851e (diff) |
marshaltestlib.rb: descriptive assertions
* test/ruby/marshaltestlib.rb (MarshalTestLib#test_string_ivar)
(MarshalTestLib#test_string_subclass_cycle): use more descriptive
assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/marshaltestlib.rb')
-rw-r--r-- | test/ruby/marshaltestlib.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/marshaltestlib.rb b/test/ruby/marshaltestlib.rb index 65d1f352db..f14209fc19 100644 --- a/test/ruby/marshaltestlib.rb +++ b/test/ruby/marshaltestlib.rb @@ -229,7 +229,7 @@ module MarshalTestLib str = MyString.new(10, "b") str.instance_eval { @v = str } marshal_equal(str) { |o| - assert_equal(o.__id__, o.instance_eval { @v }.__id__) + assert_same(o, o.instance_eval { @v }) o.instance_eval { @v } } end @@ -239,7 +239,7 @@ module MarshalTestLib o.extend(Mod1) str = MyString.new(o, "c") marshal_equal(str) { |v| - assert(v.instance_eval { @v }.kind_of?(Mod1)) + assert_kind_of(Mod1, v.instance_eval { @v }) } end |