public
Description: All the extra stuff you could want for the Mack Framework.
Homepage: http://www.mackframework.com
Clone URL: git://github.com/markbates/mack-more.git
100644 14 lines (12 sloc) 0.367 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
namespace :test do
  
  task :setup do
    unless ENV["MACK_TEST_ENV_SETUP?"] == "true"
      ENV["MACK_ENV"] = "test"
      Rake::Task["db:recreate"].invoke
      # Rake::Task["db:structure:dump"].invoke
      Mack::Database.structure_dump("development", :default)
      Rake::Task["db:migrate"].invoke
      ENV["MACK_TEST_ENV_SETUP?"] = "true"
    end
  end
  
end