From 52e06ccffc25e75c11c27728737c2cf83eda18a9 Mon Sep 17 00:00:00 2001 From: Ethan Waldo Date: Tue, 8 Feb 2011 11:38:13 -0600 Subject: [PATCH] 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 = --- lib/hydra/tasks.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/hydra/tasks.rb b/lib/hydra/tasks.rb index b41c932..ed28637 100644 --- a/lib/hydra/tasks.rb +++ b/lib/hydra/tasks.rb @@ -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)