# File test/test_subcommand.rb, line 28 def setup conffile = TestTools.build_config(binding, 'dummy') @tmpdir = File.dirname(conffile) options = Options.default options.logdir = tmpdir File.open(conffile) do |confstream| Autobuild::Config.load confstream, options end # Write example files @source1 = File.join(tmpdir, 'source1') @source2 = File.join(tmpdir, 'source2') File.open(source1, 'w+') { |f| f.write(EXAMPLE_1) } File.open(source2, 'w+') { |f| f.write(EXAMPLE_2) } end