From 12e2128a98dfd8efc12f1a75b3426a808062c8b7 Mon Sep 17 00:00:00 2001 From: Rafael Martins Date: Sat, 26 May 2012 03:51:27 -0300 Subject: [PATCH] Fixed cucumber environment on 'rake test' --- lib/tasks/test.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/test.rake b/lib/tasks/test.rake index ea3d124..791517d 100644 --- a/lib/tasks/test.rake +++ b/lib/tasks/test.rake @@ -19,7 +19,7 @@ AllTasks = TestTasks + CucumberTasks + NoosferoTasks task :test do errors = AllTasks.collect do |task| begin - ENV['RAILS_ENV'] = 'test' + CucumberTasks.include?(task) ? ENV['RAILS_ENV'] = 'cucumber' : ENV['RAILS_ENV'] = 'test' Rake::Task[task].invoke nil rescue => e -- libgit2 0.21.2