aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-06-05 10:09:52 +0900
committergit <svn-admin@ruby-lang.org>2023-06-05 01:10:26 +0000
commit3a4302c742622dda9fbaeeb90fd42364badc423d (patch)
tree88df20abfbb3e439950d2d166d0546ace6a30203 /test
parent068672cfe82eb283a1bdbce1d870afa3e9ff1053 (diff)
downloadruby-3a4302c742622dda9fbaeeb90fd42364badc423d.tar.gz
[ruby/singleton] Revert "Simplify the implementation
(https://github.com/ruby/singleton/pull/7)" This reverts commit https://github.com/ruby/singleton/commit/545b6b61a40d. This change break Rails CI: https://bugs.ruby-lang.org/issues/19711 https://github.com/ruby/singleton/commit/911531d508
Diffstat (limited to 'test')
-rw-r--r--test/test_singleton.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/test/test_singleton.rb b/test/test_singleton.rb
index b08972b9d5..b3c48bb5f5 100644
--- a/test/test_singleton.rb
+++ b/test/test_singleton.rb
@@ -94,13 +94,6 @@ class TestSingleton < Test::Unit::TestCase
assert_same a, b
end
- def test_inheritance_creates_separate_singleton
- a = SingletonTest.instance
- b = Class.new(SingletonTest).instance
-
- assert_not_same a, b
- end
-
def test_class_level_cloning_preserves_singleton_behavior
klass = SingletonTest.clone
@@ -108,8 +101,4 @@ class TestSingleton < Test::Unit::TestCase
b = klass.instance
assert_same a, b
end
-
- def test_class_level_cloning_creates_separate_singleton
- assert_not_same SingletonTest.instance, SingletonTest.clone.instance
- end
end