lib/tasks/phonelib_tasks.rake in phonelib-0.2.7 vs lib/tasks/phonelib_tasks.rake in phonelib-0.2.8
- old
+ new
@@ -1,6 +1,14 @@
namespace :phonelib do
+ desc 'Create database for tests in Rails dummy application'
+ task :create_test_db do
+ exit unless defined? Rails
+ Rails.env = 'test'
+ load 'spec/dummy/Rakefile'
+ Rake::Task['db:setup'].invoke
+ end
+
desc 'Import and reparse original data file from Google libphonenumber'
task :import_data do
require 'net/http'
require 'nokogiri'