Sha256: 58af35e17f85f43d9d2a516a5d43f5571890b609253188ad6c738e8da3af15cb

Contents?: true

Size: 355 Bytes

Versions: 10

Compression:

Stored size: 355 Bytes

Contents

require_relative 'helper'

class TestSubclassTracking < Sidetiq::TestCase
  class Foo
    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

10 entries across 10 versions & 1 rubygems

Version Path
sidetiq-0.6.2 test/test_subclass_tracking.rb
sidetiq-0.6.1 test/test_subclass_tracking.rb
sidetiq-0.6.0 test/test_subclass_tracking.rb
sidetiq-0.5.0 test/test_subclass_tracking.rb
sidetiq-0.4.3 test/test_subclass_tracking.rb
sidetiq-0.4.2 test/test_subclass_tracking.rb
sidetiq-0.4.1 test/test_subclass_tracking.rb
sidetiq-0.4.0 test/test_subclass_tracking.rb
sidetiq-0.4.0.rc4 test/test_subclass_tracking.rb
sidetiq-0.4.0.rc3 test/test_subclass_tracking.rb