rawongithub/minitest-rails — pull request #3 by kamui (2012-03-01 00:40:54+00:00)
Title: Detect ActiveRecord, Mongoid, MongoMapper, DataMapper for model spec type registration

Currently, you're checking to see if desc is a subclass of ActiveRecord::Base. I'm using Mongoid in my app so this causes:

lib/minitest/rails/model.rb:15:in `block in ': uninitialized constant ActiveRecord (NameError)

This change checks the desc ancestors to see if they include ActiveRecord, Mongoid, MongoMapper or DataMapper modules. If they do, then register the spec.