test/test.rb in africompta-1.9.11 vs test/test.rb in africompta-1.9.13.pre.10
- old
+ new
@@ -10,23 +10,29 @@
DEBUG_LVL=1
require 'QooxView'
require 'africompta'
-Permission.add( 'default', 'View,Welcome' )
-Permission.add( 'admin', '.*', '.*' )
-Permission.add( 'internet', 'Internet,PersonShow', 'default' )
-Permission.add( 'student', '', 'internet' )
-Permission.add( 'professor', '', 'student' )
-Permission.add( 'secretary', 'PersonModify', 'professor' )
+Permission.add('default', 'View,Welcome')
+Permission.add('admin', '.*', '.*')
+Permission.add('internet', 'Internet,PersonShow', 'default')
+Permission.add('student', '', 'internet')
+Permission.add('professor', '', 'student')
+Permission.add('secretary', 'PersonModify', 'professor')
-qooxView = QooxView.init( '../Entities', '../Views' )
+qooxView = QooxView.init('../Entities', '../Views')
-tests = %w( africompta account movement sqlite )
+tests = Dir.glob('ac_*.rb')
+# tests = %w( africompta account movement sqlite )
#tests = %w( africompta )
tests = %w( account )
#tests = %w( merge )
-tests.each{|t|
- require_relative "ac_#{t}"
+dp tests
+tests.each { |t|
+ begin
+ require_relative "ac_#{t}"
+ rescue LoadError => e
+ require_relative t
+ end
}
# Fails test_archive_sum_up