(#6830) Fix tests that depended on special inherited behavior
class Foo def self.inherited(subclass) puts "#{subclass.inspect} inherited from #{self}" end end class Bar < Foo end a = Class.new(Bar) do def self.to_s "some other class" end end
In Ruby 1.9 this prints
Bar inherited from Foo #<Class:0x0000010086c198> inherited from Bar
In Ruby 1.8 the to_s override used to be in effect so printed:
Bar inherited from Foo some other class inherited from Bar
Reviewed-by: Jesse Wolfe <jesse@puppetlabs.com>