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:
Ethan Waldo 2011-02-08 11:38:13 -06:00
parent 248221f5c7
commit 52e06ccffc
1 changed files with 4 additions and 1 deletions

View File

@ -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)