File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -423,6 +423,8 @@ def singleton_class
423
423
meta._proto = #{ self } .constructor.prototype;
424
424
meta._isSingleton = true;
425
425
426
+ meta._scope = #{ self } ._scope;
427
+
426
428
return meta;
427
429
}
428
430
@@ -445,6 +447,7 @@ def singleton_class
445
447
meta._proto = #{ self } ;
446
448
#{ self } ._singleton = meta;
447
449
meta._klass = orig_class._klass;
450
+ meta._scope = orig_class._scope;
448
451
449
452
return meta;
450
453
}
Original file line number Diff line number Diff line change @@ -38,19 +38,19 @@ class << @object
38
38
end
39
39
end
40
40
41
- pending "can be accessed after the metaclass body is reopened" do
41
+ it "can be accessed after the metaclass body is reopened" do
42
42
class << @object
43
43
CONST . should == self
44
44
end
45
45
end
46
46
47
- pending "can be accessed via self::CONST" do
47
+ it "can be accessed via self::CONST" do
48
48
class << @object
49
49
self ::CONST . should == self
50
50
end
51
51
end
52
52
53
- pending "can be accessed via const_get" do
53
+ it "can be accessed via const_get" do
54
54
class << @object
55
55
const_get ( :CONST ) . should == self
56
56
end
You can’t perform that action at this time.
0 commit comments