From 10621f7cb9a0c70e568f89cce47a02e878af6778 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 1 Jun 2023 14:55:36 -0700 Subject: Revert "Fix cvar caching when class is cloned" This reverts commit 77d1b082470790c17c24a2f406b4fec5d522636b. --- test/ruby/test_variable.rb | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'test') 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) -- cgit v1.2.3