rspec/rspec-core — Issue #476: With rcov=true, rake task does not execute specs with rspec-core 2.7.0
Author: rsutphin
Created: 2011-10-17 14:41:05+00:00
State: open

In rspec-core 2.7.0, `Rspec::Core::RakeTask` does not execute any specs when the `rcov` attribute is true; [minimal test case][tc].

This seems to be due to the `spec/autorun` change mentioned in the 2.7.0 changelog (the rcov mode of the task assumes that spec scripts can be executed directly). A workaround is to `require 'spec/autorun'` in your spec helper or individual specs.

[tc]: https://gist.github.com/1292714