Permalink
Browse files

Reinstate RSpec::Core::Runner.disable_autorun!

  • Loading branch information...
1 parent 86aa0cc commit f20a5789d7dba06379d0c496bc17fcc6b8d7e550 @dchelimsky dchelimsky committed Jul 7, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/rspec/core/runner.rb
@@ -11,7 +11,11 @@ def self.autorun
end
def self.autorun_disabled?
- !!ENV['DISABLE_RSPEC_AUTORUN']
+ @autorun_disabled ||= false
+ end
+
+ def self.disable_autorun!
+ @autorun_disabled = true
end
def self.installed_at_exit?

0 comments on commit f20a578

Please sign in to comment.