Skip to content
This repository
Browse code

Reinstate RSpec::Core::Runner.disable_autorun!

  • Loading branch information...
commit f20a5789d7dba06379d0c496bc17fcc6b8d7e550 1 parent 86aa0cc
David Chelimsky authored July 06, 2010

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. 6  lib/rspec/core/runner.rb
6  lib/rspec/core/runner.rb
@@ -11,7 +11,11 @@ def self.autorun
11 11
       end
12 12
 
13 13
       def self.autorun_disabled?
14  
-        !!ENV['DISABLE_RSPEC_AUTORUN']
  14
+        @autorun_disabled ||= false
  15
+      end
  16
+
  17
+      def self.disable_autorun!
  18
+        @autorun_disabled = true
15 19
       end
16 20
 
17 21
       def self.installed_at_exit?

0 notes on commit f20a578

Please sign in to comment.
Something went wrong with that request. Please try again.