summaryrefslogtreecommitdiff
path: root/test/rubygems
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-27 11:07:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-27 11:07:27 +0000
commit70d8e6cf22515bfbf15bd283726ce9b72730164d (patch)
treefbc1375813f6d86c2543a2f2c9bb0589306d6207 /test/rubygems
parent673a6ad970c5d36dd084d77a0018aa2b690a0dd3 (diff)
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
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/test_gem_specification.rb2
1 files changed, 1 insertions, 1 deletions
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