$:.unshift File.join(File.dirname(__FILE__), "..", "..", "..", "lib") require 'rexml/xpath' require 'rexml/document' require 'spec' require 'buildmaster/site_spec' require 'buildmaster/source_content' require 'buildmaster/template_error' require 'buildmaster/templatelets' require 'buildmaster/cotta' require 'buildmaster/cotta/in_memory_system' module BuildMaster module HelperMethods def setup_spec @cotta = Cotta.new(InMemorySystem.new) @site_spec = BuildMaster::SiteSpec.new(nil, @cotta) @site_spec.content_dir = '/tmp/workingdir/content' end def create_element(name) element = REXML::Element.new element.name=name return element end end end