diff --git a/.gitignore b/.gitignore index a199d36a480ccc4cb736d3a928b4afcbd8d219c3..c022570fcf65ca4e839e31ea8a064aa5ba81d5d8 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ rdoc/* .bundle Gemfile.lock api_keys.yml +test/geocoder_test.sqlite diff --git a/Rakefile b/Rakefile index 44fbee743f953aa428a14c0fdfe4a5b2c54a7666..2ee05cce85e7c4cf2d7adabe21fa1778eda1f79f 100644 --- a/Rakefile +++ b/Rakefile @@ -48,8 +48,7 @@ namespace :db do desc 'Drop the MySQL test databases' task :drop do - %x( mysqladmin --user=#{config['arunit']['username']} -f drop #{config['arunit']['database']} ) - %x( mysqladmin --user=#{config['arunit2']['username']} -f drop #{config['arunit2']['database']} ) + `mysqladmin --user=#{config['mysql']['username']} -f drop #{config['mysql']['database']}` end end @@ -64,6 +63,11 @@ namespace :db do `dropdb #{config['postgres']['database']}` end end + + namespace :sqlite do + task :drop + task :create + end end require 'rake/testtask'