warn when trying to run Rails tests with RAILS_ENV=development
This commit is contained in:
parent
6fbc582fe5
commit
dbfd9275c1
@ -72,6 +72,12 @@ module Hydra #:nodoc:
|
|||||||
|
|
||||||
yield self if block_given?
|
yield self if block_given?
|
||||||
|
|
||||||
|
if Object.const_defined?('RAILS_ENV') && RAILS_ENV == 'development'
|
||||||
|
$stderr.puts <<-MSG
|
||||||
|
WARNING: RAILS_ENV is "development". Make sure to set it properly (ex: "RAILS_ENV=test rake hydra")
|
||||||
|
MSG
|
||||||
|
end
|
||||||
|
|
||||||
# Ensure we override rspec's at_exit
|
# Ensure we override rspec's at_exit
|
||||||
require 'hydra/spec/autorun_override'
|
require 'hydra/spec/autorun_override'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user