Sha256: 2204fd83b7b9e8d5367c13e85445bbd2c092c7ec040cc9563b40f27674cac1a5
Contents?: true
Size: 643 Bytes
Versions: 5
Compression:
Stored size: 643 Bytes
Contents
require 'spec_helper' describe DispatchRider::Handlers::InheritanceTracking do class InheritanceDummyClass extend DispatchRider::Handlers::InheritanceTracking end describe ".subclasses" do context "when a class inherits from the dummy class" do class Blah < InheritanceDummyClass; end example do InheritanceDummyClass.subclasses.should include(Blah) end context "and another class inherits from the dummy class" do class Foo < InheritanceDummyClass; end example do InheritanceDummyClass.subclasses.should include(Blah, Foo) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems