I prefer
```
case foo
when bar
  2
else
  3
end
```


On Thu, May 23, 2013 at 3:09 PM, Felix Clack <notifications@github.com>wrote:

> In lib/parallel_tests/rspec/runner.rb:
>
> > @@ -14,14 +14,18 @@ def self.run_tests(test_files, process_number, num_processes, options)
> >        end
> >
> >        def self.determine_executable
> > -        cmd = if File.file?("script/spec")
> > -          "script/spec"
> > -        elsif ParallelTests.bundler_enabled?
> > -          cmd = (run("bundle show rspec-core") =~ %r{Could not find gem.*} ? "spec" : "rspec")
> > -          "bundle exec #{cmd}"
> > -        else
> > -          %w[spec rspec].detect{|cmd| system "#{cmd} --version > /dev/null 2>&1" }
> > -        end
> > +        cmd = case
> > +              when File.exists?("bin/rspec")
>
> No problem. Do you prefer either of these styles?
>
> cmd = case
>   when File.exists?("bin/rspec")
>
> or
>
> cmd = case
>             when File.exists?("bin/rspec")
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/grosser/parallel_tests/pull/222/files#r4371794>
> .
>