Commit 36dac4a52f575724de038bf6ffe2c30ed40e7325
1 parent
c0917300
Exists in
master
and in
22 other branches
Add test directory from root to $LOAD_PATH for plugins tests
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
lib/tasks/plugins_tests.rake
@@ -5,6 +5,7 @@ def define_task(test, plugins_folder='plugins', plugin = '*') | @@ -5,6 +5,7 @@ def define_task(test, plugins_folder='plugins', plugin = '*') | ||
5 | test_files = Dir.glob(File.join(Rails.root, plugins_folder, plugin, 'test', test[:folder], '**', '*_test.rb')) | 5 | test_files = Dir.glob(File.join(Rails.root, plugins_folder, plugin, 'test', test[:folder], '**', '*_test.rb')) |
6 | desc 'Runs ' + (plugin != '*' ? plugin : 'plugins') + ' ' + test[:name] + ' tests' | 6 | desc 'Runs ' + (plugin != '*' ? plugin : 'plugins') + ' ' + test[:name] + ' tests' |
7 | Rake::TestTask.new(test[:name].to_sym => 'db:test:prepare') do |t| | 7 | Rake::TestTask.new(test[:name].to_sym => 'db:test:prepare') do |t| |
8 | + t.libs << 'test' | ||
8 | t.test_files = test_files | 9 | t.test_files = test_files |
9 | t.verbose = true | 10 | t.verbose = true |
10 | end | 11 | end |