Take a look at the example included in the source: http://github.com/sam/dm-more/tree/master/dm-migrations/examples/sample_migration_spec.rb
You'll need to require 'spec/example/migration_example_group' or something like that. I should probably just put a dummy migration_spec_helpers.rb file right at the top of lib for that project, so someone only has to require that. Feel free to submit a patch or a ticket :) Paul On Sep 9, 6:52 am, Tom <[EMAIL PROTECTED]> wrote: > Having some trouble writing some dm-migration specs wondered if > someone could help: i have this spec > > require File.join( File.dirname(__FILE__), "..", "spec_helper" ) > > describe :create_departments_table, :type => :migration do > > before() do > run_migration > end > > it "should create a table of departments" > repository(:default).should have_table(:department) > end > > end > > and i get the following exception: > > NameError in 'create_departments_table should create a table of > departments' > undefined local variable or method `run_migration' for > > I know i need to require / import something any one got any ideas. > > Thanks in advance > > Tom --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
