From 36dac4a52f575724de038bf6ffe2c30ed40e7325 Mon Sep 17 00:00:00 2001 From: Paulo Meirelles Date: Tue, 10 Jan 2012 20:36:00 +0300 Subject: [PATCH] Add test directory from root to $LOAD_PATH for plugins tests --- lib/tasks/plugins_tests.rake | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/lib/tasks/plugins_tests.rake b/lib/tasks/plugins_tests.rake index 5760a1e..576f412 100644 --- a/lib/tasks/plugins_tests.rake +++ b/lib/tasks/plugins_tests.rake @@ -5,6 +5,7 @@ def define_task(test, plugins_folder='plugins', plugin = '*') test_files = Dir.glob(File.join(Rails.root, plugins_folder, plugin, 'test', test[:folder], '**', '*_test.rb')) desc 'Runs ' + (plugin != '*' ? plugin : 'plugins') + ' ' + test[:name] + ' tests' Rake::TestTask.new(test[:name].to_sym => 'db:test:prepare') do |t| + t.libs << 'test' t.test_files = test_files t.verbose = true end -- libgit2 0.21.2