From 70d8e6cf22515bfbf15bd283726ce9b72730164d Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 27 Nov 2016 11:07:27 +0000 Subject: object.c: no TypeError at special const dup * object.c (rb_obj_dup): no longer raise a TypeError for special constants, and return itself instead. [Feature#12979] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rubygems/test_gem_specification.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/rubygems') diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index 87f0f360d7..2c0ea770b5 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -1260,7 +1260,7 @@ dependencies: [] s.version = '1' end - spec.instance_variable_set :@licenses, :blah + spec.instance_variable_set :@licenses, Object.new.singleton_class spec.loaded_from = '/path/to/file' e = assert_raises Gem::FormatException do -- cgit v1.2.3