test/test_examples.rb in ruby-graphviz-1.2.3 vs test/test_examples.rb in ruby-graphviz-1.2.4
- old
+ new
@@ -1,5 +1,7 @@
+require 'open3'
+
class GraphVizTest < Test::Unit::TestCase
# you can run a subset of all the samples like this:
# ruby test/test_examples.rb --name='/sample3[6-9]/'
#
# The above will run samples 36, 37, 38, and 39
@@ -94,10 +96,10 @@
if File.directory? OutputDir
FileUtils.rm_rf OutputDir
end
FileUtils.cp_r ExampleDir, OutputDir
-
+
samples = Dir[File.join(OutputDir,'sample*.rb')].sort
samples.each {|path| make_sample_test_method(path) }
private