Commit 12e2128a98dfd8efc12f1a75b3426a808062c8b7

Authored by Rafael Martins
1 parent 64009edd

Fixed cucumber environment on 'rake test'

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/tasks/test.rake
@@ -19,7 +19,7 @@ AllTasks = TestTasks + CucumberTasks + NoosferoTasks @@ -19,7 +19,7 @@ AllTasks = TestTasks + CucumberTasks + NoosferoTasks
19 task :test do 19 task :test do
20 errors = AllTasks.collect do |task| 20 errors = AllTasks.collect do |task|
21 begin 21 begin
22 - ENV['RAILS_ENV'] = 'test' 22 + CucumberTasks.include?(task) ? ENV['RAILS_ENV'] = 'cucumber' : ENV['RAILS_ENV'] = 'test'
23 Rake::Task[task].invoke 23 Rake::Task[task].invoke
24 nil 24 nil
25 rescue => e 25 rescue => e