Sha256: bc073bce60f552576a17e81f43e2b3a74062780652881a06e954d93c9785c815

Contents?: true

Size: 259 Bytes

Versions: 5

Compression:

Stored size: 259 Bytes

Contents

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:migrate"].invoke
      ENV["MACK_TEST_ENV_SETUP?"] = "true"
    end
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mack-data_mapper-0.6.0 lib/tasks/test_tasks.rake
mack-data_mapper-0.6.0.1 lib/tasks/test_tasks.rake
mack-data_mapper-0.6.1.1 lib/mack-data_mapper/tasks/test_tasks.rake
mack-data_mapper-0.6.1.2 lib/mack-data_mapper/tasks/test_tasks.rake
mack-data_mapper-0.6.1 lib/mack-data_mapper/tasks/test_tasks.rake