test/test.rb in rufus-verbs-0.10 vs test/test.rb in rufus-verbs-1.0.0

- old
+ new

@@ -1,28 +1,24 @@ -require 'rubygems' +#require 'dryrun_test' +#require 'iconditional_test' +#require 'simple_test' +#require 'auth0_test' +#require 'auth1_test' +#require 'redir_test' +#require 'block_test' +#require 'https_test' +#require 'proxy_test' +#require 'conditional_test' +#require 'cookie0_test' +#require 'cookie1_test' +#require 'escape_test' +#require 'uri_test' +#require 'fopen_test' +#require 'timeout_test' +dirpath = File.dirname(__FILE__) -require 'dryrun_test' -require 'iconditional_test' +tests = Dir.new(dirpath).entries.select { |e| e.match(/\_test\.rb$/) }.sort -require 'simple_test' - -require 'auth0_test' -require 'auth1_test' - -require 'redir_test' -require 'block_test' -require 'https_test' -require 'proxy_test' - -require 'conditional_test' -require 'cookie0_test' -require 'cookie1_test' - -require 'escape_test' - -require 'uri_test' -require 'fopen_test' - -require 'timeout_test' +tests.each { |t| load "#{dirpath}/#{t}" }