# File test/tools.rb, line 17
    def self.build_config(bind, template)
        eval "basedir = '#{self.tempdir}'", bind
        ryml = File.open(File.join(DATADIR, "#{template}.ryml")) { |f| f.readlines }.join('')
        result = ERB.new(ryml).result(bind)

        yml = File.join(tempdir, "#{template}.yml")
        File.open(yml, 'w+') { |f| f.write(result) }
        
        return yml
    end