fixed hydra rspec autorun override
This commit is contained in:
parent
e97c65ea78
commit
80a119b350
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue