public
Description: This plugin adds full text search capabilities and many other nifty features from Apache‘s Solr to any Rails model.
Homepage: http://acts-as-solr.railsfreaks.com
Clone URL: git://github.com/railsfreaks/acts_as_solr.git
acts_as_solr / Rakefile
100644 26 lines (20 sloc) 0.642 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'rubygems'
require 'rake'
require 'rake/testtask'
 
Dir["#{File.dirname(__FILE__)}/lib/tasks/**/*.rake"].sort.each { |ext| load ext }
 
desc "Default Task"
task :default => [:test]
 
desc 'Runs the tests'
task :test do
  ENV['RAILS_ENV'] = "test"
  require File.dirname(__FILE__) + '/config/environment'
  puts "Using " + DB
  %x(mysql -u#{MYSQL_USER} < #{File.dirname(__FILE__) + "/test/fixtures/db_definitions/mysql.sql"}) if DB == 'mysql'
  
  Rake::Task["test:migrate"].invoke
  Rake::Task[:test_units].invoke
end
 
desc "Unit Tests"
 Rake::TestTask.new('test_units') do |t|
  t.pattern = "test/unit/*_test.rb"
  t.verbose = true
end