fixed hydra rspec autorun override
This commit is contained in:
parent
e97c65ea78
commit
80a119b350
@ -110,7 +110,7 @@ module Hydra #:nodoc:
|
|||||||
require 'rspec'
|
require 'rspec'
|
||||||
require 'hydra/spec/hydra_formatter'
|
require 'hydra/spec/hydra_formatter'
|
||||||
# Ensure we override rspec's at_exit
|
# Ensure we override rspec's at_exit
|
||||||
require 'hydra/spec/autorun_override'
|
RSpec::Core::Runner.disable_autorun!
|
||||||
rescue LoadError => ex
|
rescue LoadError => ex
|
||||||
return ex.to_s
|
return ex.to_s
|
||||||
end
|
end
|
||||||
|
@ -79,7 +79,9 @@ module Hydra #:nodoc:
|
|||||||
yield self if block_given?
|
yield self if block_given?
|
||||||
|
|
||||||
# Ensure we override rspec's at_exit
|
# Ensure we override rspec's at_exit
|
||||||
require 'hydra/spec/autorun_override'
|
if defined?(RSpec)
|
||||||
|
RSpec::Core::Runner.disable_autorun!
|
||||||
|
end
|
||||||
|
|
||||||
unless @serial
|
unless @serial
|
||||||
@config = find_config_file
|
@config = find_config_file
|
||||||
|
Loading…
Reference in New Issue
Block a user