Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed db:test:prepare which imposed the RAILS_ENV=test to all tasks

  • Loading branch information...
commit 6b12f269c89b9775d052af5f785b4c1f970669ba 1 parent b900d24
Christian Meier authored October 19, 2009
6  generators/datamapper_install/templates/datamapper.rake
@@ -46,8 +46,10 @@ namespace :db do
46 46
 
47 47
   # this is needed for rspec and test tasks  
48 48
   namespace :test do
49  
-    RAILS_ENV = 'test'
50  
-    task :prepare => :automigrate
  49
+    task :prepare do
  50
+      RAILS_ENV='test'
  51
+      Rake::Task['db:automigrate'].invoke
  52
+    end
51 53
   end
52 54
 
53 55
   namespace :migrate do

0 notes on commit 6b12f26

Please sign in to comment.
Something went wrong with that request. Please try again.