Sha256: 102024d8439cc73cfa49187d7685e00d33a35cdb505e1108b9686132774fbf9c
Contents?: true
Size: 382 Bytes
Versions: 4
Compression:
Stored size: 382 Bytes
Contents
require_relative 'helper' class TestSubclassTracking < Sidetiq::TestCase class Base end class Foo < Base extend Sidetiq::SubclassTracking end class Bar < Foo end class Baz < Bar end def test_subclasses_non_recursive assert_equal [Bar], Foo.subclasses end def test_subclasses_recursive assert_equal [Bar, Baz], Foo.subclasses(true) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sidetiq-0.7.2 | test/test_subclass_tracking.rb |
sidetiq-0.7.1 | test/test_subclass_tracking.rb |
sidetiq-0.7.0 | test/test_subclass_tracking.rb |
sidetiq-0.6.3 | test/test_subclass_tracking.rb |