adding spec_all task for running specs for all model adapters
This commit is contained in:
parent
f9f71d679d
commit
70b5f9a613
8
Rakefile
8
Rakefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user