.autotest in dnssd-1.1.0 vs .autotest in dnssd-1.2
- old
+ new
@@ -1,15 +1,14 @@
-require 'autotest/restart'
+begin
+ require 'autotest/fsevent'
+rescue LoadError
+end
-Autotest.add_hook :initialize do |at|
- at.testlib = 'minitest/unit'
-
- def at.path_to_classname(s)
- sep = File::SEPARATOR
- f = s.sub(/^test#{sep}/, '').sub(/\.rb$/, '').split(sep)
- f = f.map { |path| path.split(/_|(\d+)/).map { |seg| seg.capitalize }.join }
- f = f.map { |path| path =~ /^Test/ ? path : "Test#{path}" }
- f.join('::').sub 'Dnssd', 'DNSSD'
+Autotest.add_hook :run_command do |at|
+ at.unit_diff = 'cat'
+ if ENV['ONENINE']
+ system "rake1.9 compile"
+ else
+ system "rake compile"
end
-
end