Permalink
Browse files

adding spec_all task for running specs for all model adapters

  • Loading branch information...
1 parent f9f71d6 commit 70b5f9a613b379e96f83b368e55469786933b251 @ryanb committed Dec 30, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 Rakefile
View
@@ -7,4 +7,12 @@ RSpec::Core::RakeTask.new do |t|
t.verbose = false
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

0 comments on commit 70b5f9a

Please sign in to comment.