2010-07-21 11:45:26 -07:00
|
|
|
require 'rubygems'
|
|
|
|
require 'rake'
|
2010-10-05 10:09:37 -07:00
|
|
|
require 'rspec/core/rake_task'
|
2010-07-21 11:45:26 -07:00
|
|
|
|
2010-10-05 10:09:37 -07:00
|
|
|
desc "Run RSpec"
|
|
|
|
RSpec::Core::RakeTask.new do |t|
|
|
|
|
t.verbose = false
|
2010-07-21 11:45:26 -07:00
|
|
|
end
|
|
|
|
|
2010-12-30 15:50:40 -08:00
|
|
|
desc "Run specs for all adapters"
|
|
|
|
task :spec_all do
|
|
|
|
%w[active_record data_mapper mongoid].each do |model_adapter|
|
|
|
|
puts "MODEL_ADAPTER = #{model_adapter}"
|
|
|
|
system "rake spec MODEL_ADAPTER=#{model_adapter}"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2010-09-03 16:19:39 -07:00
|
|
|
task :default => :spec
|