Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 6b12f269c89b9775d052af5f785b4c1f970669ba 1 parent b900d24
@mkristian authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 generators/datamapper_install/templates/datamapper.rake
View
6 generators/datamapper_install/templates/datamapper.rake
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.