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 [, , , , ]
  • http://snepo.com whalec

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

blog comments powered by Disqus