grosser/parallel_tests — Issue #67: grouper.rb, in_even_groups_by_size: undefined method `[]' for nil:NilClass
Author: jensb
Created: 2011-10-21 08:49:34+00:00
State: open

Hello,

fresh Rails install (3.1.1 and 3.0.4 for legacy apps). Run 'rake parallel:spec' inside an app. This is the error:

/Library/Ruby/Gems/1.8/gems/parallel_tests-0.4.12/lib/parallel_tests.rb:6: warning: already initialized constant VERSION
/Library/Ruby/Gems/1.8/gems/parallel_tests-0.4.12/lib/parallel_tests/grouper.rb:20:in `in_even_groups_by_size':
undefined method `[]' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/1.8/gems/parallel_tests-0.4.12/lib/parallel_tests/grouper.rb:17:in `each'
from /Library/Ruby/Gems/1.8/gems/parallel_tests-0.4.12/lib/parallel_tests/grouper.rb:17:in `in_even_groups_by_size'
from /Library/Ruby/Gems/1.8/gems/parallel_tests-0.4.12/lib/parallel_tests.rb:27:in `tests_in_groups'
from /Library/Ruby/Gems/1.8/gems/parallel_tests-0.4.12/lib/tasks/../parallel_tests/../../bin/parallel_test:65

This is on OS X Lion 10.7.2 and on a Macbook Pro.

Any ideas what might cause this?

Thank you!