fixed hydra rspec autorun override

This commit is contained in:
Nick Gauthier 2010-10-25 14:14:58 -04:00
parent e97c65ea78
commit 80a119b350
2 changed files with 4 additions and 2 deletions

View File

@ -110,7 +110,7 @@ module Hydra #:nodoc:
require 'rspec'
require 'hydra/spec/hydra_formatter'
# Ensure we override rspec's at_exit
require 'hydra/spec/autorun_override'
RSpec::Core::Runner.disable_autorun!
rescue LoadError => ex
return ex.to_s
end

View File

@ -79,7 +79,9 @@ module Hydra #:nodoc:
yield self if block_given?
# Ensure we override rspec's at_exit
require 'hydra/spec/autorun_override'
if defined?(RSpec)
RSpec::Core::Runner.disable_autorun!
end
unless @serial
@config = find_config_file