using new Rails.env
This commit is contained in:
parent
3fd1401513
commit
5f4bf365ba
|
@ -105,8 +105,8 @@ module Hydra #:nodoc:
|
||||||
def define
|
def define
|
||||||
desc "Hydra Tests" + (@name == :hydra ? "" : " for #{@name}")
|
desc "Hydra Tests" + (@name == :hydra ? "" : " for #{@name}")
|
||||||
task @name do
|
task @name do
|
||||||
if Object.const_defined?('RAILS_ENV') && RAILS_ENV == 'development'
|
if Object.const_defined?('Rails') && Rails.env == 'development'
|
||||||
$stderr.puts %{WARNING: RAILS_ENV is "development". Make sure to set it properly (ex: "RAILS_ENV=test rake hydra")}
|
$stderr.puts %{WARNING: Rails Environment is "development". Make sure to set it properly (ex: "RAILS_ENV=test rake hydra")}
|
||||||
end
|
end
|
||||||
|
|
||||||
Hydra::Master.new(@opts)
|
Hydra::Master.new(@opts)
|
||||||
|
|
Loading…
Reference in New Issue