Sha256: 083a184521509add0770e0da9729074a1de96350d37787cb565c2257bc0ec38d
Contents?: true
Size: 388 Bytes
Versions: 33
Compression:
Stored size: 388 Bytes
Contents
module ModuleInheritedTestModule class A def self.inherited(subclass) $ScratchPad << subclass.name end end end describe 'Class#inherited' do it 'gets called after setting a base scope of the subclass' do $ScratchPad = [] module ModuleInheritedTestModule class B < A end end $ScratchPad.should == ['ModuleInheritedTestModule::B'] end end
Version data entries
33 entries across 33 versions & 1 rubygems