spec/motion-resource/base_spec.rb in motion-resource-0.0.1 vs spec/motion-resource/base_spec.rb in motion-resource-0.0.2

- old
+ new

@@ -49,6 +49,14 @@ shape2 = Shape.instantiate(:id => 6, :contents => 'something') shape1.should.be.identical_to shape2 shape1.contents.should == 'something' end end + + describe "subclasses" do + it "should keep track of subclasses" do + MotionResource::Base.subclasses.should.include(Shape) + Shape.subclasses.should.include(Rectangle) + MotionResource::Base.subclasses.should.not.include(Rectangle) + end + end end