summaryrefslogtreecommitdiff
path: root/test/ruby/test_object.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_object.rb')
-rw-r--r--test/ruby/test_object.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb
index 7b3defa011..2f80bc6ffb 100644
--- a/test/ruby/test_object.rb
+++ b/test/ruby/test_object.rb
@@ -19,9 +19,9 @@ class TestObject < Test::Unit::TestCase
end
def test_dup
- assert_raise(TypeError) { 1.dup }
- assert_raise(TypeError) { true.dup }
- assert_raise(TypeError) { nil.dup }
+ assert_equal 1, 1.dup
+ assert_equal true, true.dup
+ assert_equal nil, nil.dup
assert_raise(TypeError) do
Object.new.instance_eval { initialize_copy(1) }