Skip to content

Commit

Permalink
fixed db:test:prepare which imposed the RAILS_ENV=test to all tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian committed Oct 19, 2009
1 parent b900d24 commit 6b12f26
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions generators/datamapper_install/templates/datamapper.rake
Expand Up @@ -46,8 +46,10 @@ namespace :db do

# this is needed for rspec and test tasks
namespace :test do
RAILS_ENV = 'test'
task :prepare => :automigrate
task :prepare do
RAILS_ENV='test'
Rake::Task['db:automigrate'].invoke
end
end

namespace :migrate do
Expand Down

0 comments on commit 6b12f26

Please sign in to comment.