In a Rails 3 project, by default, config/application.rb contains require 'rails/all' , basically requiring all rails frameworks (ActiveRecord, ActiveResource, ActionController, ActionMailer, TestUnit , etc.)
The DataMapper template will change this. Since it does not use ActiveRecord, it cannot require 'rails/all' to cause problems. The only Rails component that it actually stores is the ActionController. It places require expressions for ActiveResource, ActionMailer, and TestUnit in the expressions, but comments on them by default .
In short: uncomment the following line in config/application.rb :
require 'rails/test_unit/railtie'
source share