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?

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to