colszowka/simplecov — pull request #181 by semanticart (2012-12-09 19:02:12+00:00)
Title: Add support for command guessing in Rails 4

Rails 4 issues the command

rake_test_loader.rb test/{controllers,mailers,functional}/**/*_test.rb

to run functional tests.

This adds a second clause to the case statement to properly guess that these are functional tests. I also added tests for each of the basic kinds of tests Rails 4 runs (integration/unit/functional).

I left the regex a little flexible in case the ordering of the "controllers,mailers,functional" part changes. It should still be plenty specific enough.

Thank you for a fantastic library.