Commit dd2f1495f5980f07dd0b35be43d10dafb1fca612
1 parent
289ca9e2
Exists in
master
and in
29 other branches
rails3: using test environment for cucumber task
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 | - CucumberTasks.include?(task) ? ENV['RAILS_ENV'] = 'cucumber' : ENV['RAILS_ENV'] = 'test' | 22 | + ENV['RAILS_ENV'] = 'test' |
23 | Rake::Task[task].invoke | 23 | Rake::Task[task].invoke |
24 | nil | 24 | nil |
25 | rescue => e | 25 | rescue => e |