Permalink
Browse files

`require 'rspec/autorun'` when running rcov

- Fixes #370.
  • Loading branch information...
1 parent 899c679 commit 90db0907e378c6551895b6a36fdde92d04e056c7 @dchelimsky dchelimsky committed May 19, 2011
Showing with 3 additions and 0 deletions.
  1. +1 −0 features/Changelog.md
  2. +2 −0 lib/rspec/core.rb
View
@@ -4,6 +4,7 @@
* Bug fixes
* Don't extend nil when filters are nil
+ * `require 'rspec/autorun'` when running rcov.
### 2.6.0 / 2011-05-12
View
@@ -26,6 +26,8 @@
require 'rspec/core/version'
require 'rspec/core/errors'
+require 'rspec/autorun' if $0.split(File::SEPARATOR).last == 'rcov'
+
module RSpec
autoload :Matchers, 'rspec/matchers'

0 comments on commit 90db090

Please sign in to comment.