adding spec_all task for running specs for all model adapters

This commit is contained in:
Ryan Bates 2010-12-30 15:50:40 -08:00
parent f9f71d679d
commit 70b5f9a613

View File

@ -7,4 +7,12 @@ RSpec::Core::RakeTask.new do |t|
t.verbose = false t.verbose = false
end end
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
task :default => :spec task :default => :spec