You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DataMapper
How does one run dm-migrations from rspec as part of before :all or
similar?
My first thought was to require dm-migrations, load the migration
files, and then run migrate_up! (borrowing from how dm-rails does it
in Rake) but that doesn't seem to load the migrations into the right
array, perhaps because migration_runner is included by whatever first
required it and stores the migrations list in @@migrations?
Is there a recommended (or not) way to run migrations files before an
Rspec run?