From 1674a3a1a7405371cd9768aeec8f91037cd7ffb5 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Mon, 28 Dec 2015 17:21:32 -0300 Subject: [PATCH] fix to run all plugins tests --- lib/tasks/plugins_tests.rake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tasks/plugins_tests.rake b/lib/tasks/plugins_tests.rake index ea3c37a..976ec23 100644 --- a/lib/tasks/plugins_tests.rake +++ b/lib/tasks/plugins_tests.rake @@ -111,7 +111,8 @@ def run_test(name, files) end def run_minitest files - sh 'ruby', '-Itest', *files + files = files.map{|f| File.join(Rails.root, f)} + sh 'ruby', '-Itest', '-e ARGV.each{|f| require f}', *files end def run_cucumber(profile, files) -- libgit2 0.21.2