Fixed issue where tasks weren't detecting rails environment. This caused cucumber tests to be run in test environment instead of cucumber. Figured the easiest thing to due was allow the environment to be specified in the rake task itself via t.environment =
This commit is contained in:
parent
248221f5c7
commit
52e06ccffc
|
@ -36,6 +36,8 @@ module Hydra #:nodoc:
|
|||
# files that may not play nice with others.
|
||||
attr_accessor :serial
|
||||
|
||||
attr_accessor :environment
|
||||
|
||||
#
|
||||
# Search for the hydra config file
|
||||
def find_config_file
|
||||
|
@ -91,7 +93,8 @@ module Hydra #:nodoc:
|
|||
:verbose => @verbose,
|
||||
:autosort => @autosort,
|
||||
:files => @files,
|
||||
:listeners => @listeners
|
||||
:listeners => @listeners,
|
||||
:environment => @environment
|
||||
}
|
||||
if @config
|
||||
@opts.merge!(:config => @config)
|
||||
|
|
Loading…
Reference in New Issue