summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2023-06-01 14:55:36 -0700
committerAaron Patterson <tenderlove@ruby-lang.org>2023-06-01 14:55:36 -0700
commit10621f7cb9a0c70e568f89cce47a02e878af6778 (patch)
treecb8ce96582f7780a8093be1239689f768c74e6e5 /test
parent2d2893f206b1ff012ac68bddbeb860ca737b765f (diff)
Revert "Fix cvar caching when class is cloned"
This reverts commit 77d1b082470790c17c24a2f406b4fec5d522636b.
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_variable.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/ruby/test_variable.rb b/test/ruby/test_variable.rb
index e50b681ce8..1158313776 100644
--- a/test/ruby/test_variable.rb
+++ b/test/ruby/test_variable.rb
@@ -49,19 +49,6 @@ class TestVariable < Test::Unit::TestCase
assert_equal(1, c.class_variable_get(:@@foo))
end
- Zeus = Gods.clone
-
- def test_cloned_allows_setting_cvar
- Zeus.class_variable_set(:@@rule, "Athena")
-
- god = Gods.new.ruler0
- zeus = Zeus.new.ruler0
-
- assert_equal "Cronus", god
- assert_equal "Athena", zeus
- assert_not_equal god.object_id, zeus.object_id
- end
-
def test_singleton_class_included_class_variable
c = Class.new
c.extend(Olympians)