require '../test_helper' require 'test/unit' require 'tempfile' require 'grizzled/fileutil/includer' include Grizzled::FileUtil class IncluderTestDriver < Test::Unit::TestCase include GrizzledTestHelper def test_successful_file_include make_include_file do |test_file| inc = Includer.new(test_file.main_file) lines = inc.readlines.map {|line| line.chomp} assert_equal(['one-1', 'one-2', 'two-2', 'two-1'], lines) inc.close end end def test_recursive_include temp = Tempfile.new('inctest') temp.write <