2 class MultiThreadedBehaviourRunner < Spec::Runner::BehaviourRunner
3 def initialize(options)
10 def run_behaviours(behaviours)
13 behaviours.each { |b| q << b}
14 @thread_count.times do
15 @threads << Thread.new(q) do |queue|
16 while not queue.empty?
18 behaviour.run(@options.reporter, @options.dry_run, @options.reverse)
23 @threads.each {|t| t.join}