[Git][noosfero/noosfero][master] fix to run all plugins tests

Leandro Nunes gitlab at mg.gitlab.com
Mon Dec 28 18:42:02 BRST 2015


Leandro Nunes pushed to branch master at Noosfero / noosfero


Commits:
1674a3a1 by Leandro Nunes dos Santos at 2015-12-28T17:21:32Z
fix to run all plugins tests

- - - - -


1 changed file:

- lib/tasks/plugins_tests.rake


Changes:

=====================================
lib/tasks/plugins_tests.rake
=====================================
--- 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)



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/1674a3a1a7405371cd9768aeec8f91037cd7ffb5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20151228/60085404/attachment.html>


More information about the Noosfero-dev mailing list