Sha256: 9dd0c29ab9da88c71c18d5e6daa10627a25a5c85489e3b5640036f4ed4bba907

Contents?: true

Size: 683 Bytes

Versions: 2

Compression:

Stored size: 683 Bytes

Contents

$:.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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
BuildMaster-0.9.0 test/buildmaster/templatelets/common_templatelet_test.rb
BuildMaster-0.9.1 test/buildmaster/templatelets/common_templatelet_test.rb