diff options
Diffstat (limited to 'KNOWNBUGS.rb')
-rw-r--r-- | KNOWNBUGS.rb | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/KNOWNBUGS.rb b/KNOWNBUGS.rb index 7f6fa9274a..e3ac86776d 100644 --- a/KNOWNBUGS.rb +++ b/KNOWNBUGS.rb @@ -3,15 +3,18 @@ # So all tests will cause failure. # -assert_equal %q{[:bar, :foo]}, %q{ - def foo - klass = Class.new do - define_method(:bar) do - return :bar - end +assert_equal 'A', %q{ + class A + @@a = 'A' + def a=(x) + @@a = x + end + def a + @@a end - [klass.new.bar, :foo] end - foo -}, "[ ruby-Bugs-19304 ]" + B = A.dup + B.new.a = 'B' + A.new.a +} |