Skip to content

Commit

Permalink
adding spec_all task for running specs for all model adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanb committed Dec 30, 2010
1 parent f9f71d6 commit 70b5f9a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.