Skip to content

Commit

Permalink
Reinstate RSpec::Core::Runner.disable_autorun!
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Jul 7, 2010
1 parent 86aa0cc commit f20a578
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/rspec/core/runner.rb
Expand Up @@ -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?
Expand Down

0 comments on commit f20a578

Please sign in to comment.