Having Merb auto-migrate DataMapper test tables

By default, Merb will not ask DataMapper to create the tables in your testing database when you run your specs. In order to do this, you need to add the following line to your spec/spec_helper.rb file:

DataMapper::Base.auto_migrate!
2008-02-23 [, , , , ]

Comments

  1. In case you’ve found this on google. These day’s it’s just DataMapper.automigrate!

    whalec (2008-12-11 @ 01:48)

Powered by WP Hashcash