From a2746e150ed7f084ede6af78b95d6f5e29d6dab1 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 27 Nov 2016 21:16:40 +0900 Subject: [PATCH] Support 1.8 --- test/rubygems/test_gem_specification.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index 51916e45b40f..dc7b1342cf64 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -1260,7 +1260,7 @@ def test_initialize_copy_broken s.version = '1' end - spec.instance_variable_set :@licenses, Object.new.singleton_class + spec.instance_variable_set :@licenses, (class << (Object.new);self;end) spec.loaded_from = '/path/to/file' e = assert_raises Gem::FormatException do