diff --git a/spec/tasks/couchrest_rails_tasks.rake_spec.rb b/spec/tasks/couchrest_rails_tasks.rake_spec.rb index ad527ae..5d8b6a2 100644 --- a/spec/tasks/couchrest_rails_tasks.rake_spec.rb +++ b/spec/tasks/couchrest_rails_tasks.rake_spec.rb @@ -41,10 +41,18 @@ describe 'couchdb:reset' do + it 'should drop and add the database' do + + end + end describe 'couchdb:test:reset' do + it 'should drop and the database for the test environment only' do + + end + end end diff --git a/tasks/couchrest_rails_tasks.rake b/tasks/couchrest_rails_tasks.rake index 258195b..2066271 100644 --- a/tasks/couchrest_rails_tasks.rake +++ b/tasks/couchrest_rails_tasks.rake @@ -16,7 +16,7 @@ namespace :couchdb do task :drop => :environment do cr = CouchRest.new(COUCHDB_SERVER[:host]) db = cr.database(COUCHDB_SERVER[:database]) - db.delete! rescue nil + db.delete! end desc "Drops and recreates the couchdb database for the current RAILS_ENV"