dev_tasks/spec.rake in sunspot_rails-2.1.0 vs dev_tasks/spec.rake in sunspot_rails-2.1.1
- old
+ new
@@ -42,11 +42,10 @@
end
end
task :initialize_database do
if ENV['DB'] == 'postgres'
- sh "psql -c 'DROP DATABASE IF EXISTS sunspot_test;' -d template1"
- sh "psql -c 'create database sunspot_test;' -d template1"
+ sh "bundle exec rake db:test:prepare"
end
end
task :setup_rails_app do
FileUtils.cp_r File.join(rails_template_path, "."), rails_app_path(version)