require 'tap' require 'tap/test/file_methods' require 'tap/test/subset_methods' require File.join(File.dirname(__FILE__), 'test_array.rb') class Test::Unit::TestCase include Tap::Test::SubsetMethods # method to duplicate one of the source files to a target file def dup_file(source_base, target_base) filepath = tempfile(target_base) FileUtils.cp(source_base + '.txt', filepath + ".txt") FileUtils.cp(source_base + '.index', filepath + ".index") filepath + ".txt" end # # The default data # def string "abcdefgh" end def array ["a", "b", "c", "d", "e", "f", "g", "h"] end end