Skip to content

Commit

Permalink
Run migrations before testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed Sep 27, 2011
1 parent 1228d69 commit b900116
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ namespace :spec do
tmp_env = Rails.env
Rails.env = "test"
Rake::Task["crm:copy_default_config"].invoke
puts "Running initial migrations..."
Rake::Task["db:migrate"].invoke
puts "Preparing test database..."
Rake::Task["db:test:prepare"].invoke
Rails.env = tmp_env
Expand Down

0 comments on commit b900116

Please sign in to comment.