lib/tork/driver.rb in tork-17.0.1 vs lib/tork/driver.rb in tork-17.1.0

- old
+ new

@@ -51,11 +51,12 @@ @running_test_files.delete file @failed_test_files.add file @passed_test_files.delete file end - @client.send message + @client.send message # propagate output downstream + Config.test_event_hooks.each {|hook| hook.call message } end @master.send [:load, Config.overhead_load_paths, Dir[*Config.overhead_file_globs]] @@ -70,11 +71,11 @@ changed_files.each do |changed_file| warn "#{$0}(#{$$}): FILE #{changed_file}" if $DEBUG # find and run the tests that correspond to the changed file Config.test_file_globbers.each do |regexp, globber| - if regexp =~ changed_file and glob = globber.call(changed_file, $~) - run_test_files Dir[glob] + if regexp =~ changed_file and globs = globber.call(changed_file, $~) + run_test_files Dir[*globs] end end # reabsorb text execution overhead if overhead files changed if Config.reabsorb_file_greps.any? {|r| r =~ changed_file }