lib/parallel_tests/tasks.rb in parallel_tests-0.6.13 vs lib/parallel_tests/tasks.rb in parallel_tests-0.6.14

- old
+ new

@@ -41,10 +41,10 @@ run_in_parallel('rake db:test:load', args) end ['test', 'spec', 'features'].each do |type| desc "run #{type} in parallel with parallel:#{type}[num_cpus]" - task type, :count, :pattern, :options do |t,args| + task type, [:count, :pattern, :options] => 'db:abort_if_pending_migrations' do |t,args| $LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), '..')) require "parallel_tests" count, pattern, options = ParallelTests.parse_rake_args(args) executable = File.join(File.dirname(__FILE__), '..', '..', 'bin', 'parallel_test') command = "#{executable} --type #{type} -n #{count} -p '#{pattern}' -r '#{Rails.root}' -o '#{options}'"