the superclass of a singleton class is the singleton class of the superclass
And i have tests to prove it! That just rolls of the tongue, it had to be the commit message
This commit is contained in:
@ -55,5 +55,11 @@ module Parfait
|
||||
def test_type_is_single
|
||||
assert_equal true , @try.instance_type.is_single?
|
||||
end
|
||||
def test_super_class
|
||||
assert_equal SingletonClass , @try.super_class.class
|
||||
end
|
||||
def test_super_class_name
|
||||
assert_equal :"Object.Single" , @try.super_class_name
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user