Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only require "rspec/autorun" implicitly when using the `rspec` command.

This is a backward incompatible change, but is a fair tradeoff given the
problems caused by implicit require of "rspec/autorun" in cases that
rspec can not control.

- Closes #431.
  • Loading branch information...
commit 3d810f87d24d6604e996dd35340e3c5f9828816c 1 parent 7df9b24
@dchelimsky dchelimsky authored
Showing with 10 additions and 4 deletions.
  1. +10 −2 Changelog.md
  2. +0 −2  lib/rspec/core.rb
View
12 Changelog.md
@@ -1,7 +1,14 @@
-### dev
+### 2.7.0 (not yet released)
[full changelog](http://github.com/rspec/rspec-core/compare/v2.6.4...master)
+NOTE: RSpec's release policy dictates that there should not be any backward
+incompatible changes in minor releases, but we're making an exception to
+release a change to how RSpec interacts with other command line tools.
+
+As of 2.7.0, you must explicity `require "rspec/autorun"` unless you use the
+`rspec` command (which already does this for you).
+
* Enhancements
* Add example.exception (David Chelimsky)
* --default_path command line option (Justin Ko)
@@ -14,7 +21,8 @@
* Clear formatters when resetting config (John Bintz)
* Bug fixes
- * Include Rake::DSL to remove deprecation warnings in Rake > 0.8.7 (Pivotal Casebook)
+ * Include Rake::DSL to remove deprecation warnings in Rake > 0.8.7 (Pivotal
+ Casebook)
* Only eval `let` block once even if it returns `nil` (Adam Meehan)
* Fix --pattern option (wasn't being recognized) (David Chelimsky)
View
2  lib/rspec/core.rb
@@ -27,8 +27,6 @@
require 'rspec/core/version'
require 'rspec/core/errors'
-require 'rspec/autorun' if $0.split(File::SEPARATOR).last == 'rcov'
-
module RSpec
autoload :Matchers, 'rspec/matchers'
Please sign in to comment.
Something went wrong with that request. Please try again.