Sha256: 12613f33ecb2f1c5e8465c8971691b6b809c4652cf044393cfb648d66caeb006
Contents?: true
Size: 661 Bytes
Versions: 16
Compression:
Stored size: 661 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 expect(InheritanceDummyClass.subclasses).to include(Blah) end context "and another class inherits from the dummy class" do class Foo < InheritanceDummyClass end example do expect(InheritanceDummyClass.subclasses).to include(Blah, Foo) end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems