test/buildmaster/templatelets/common_templatelet_test.rb in BuildMaster-0.8.1 vs test/buildmaster/templatelets/common_templatelet_test.rb in BuildMaster-0.9.0
- old
+ new
@@ -1,27 +1,28 @@
$:.unshift File.join(File.dirname(__FILE__), "..", "..", "..", "lib")
require 'rexml/xpath'
require 'rexml/document'
-require 'test/unit'
+require 'spec'
require 'buildmaster/site_spec'
require 'buildmaster/source_content'
-require 'buildmaster/template_exception'
+require 'buildmaster/template_error'
require 'buildmaster/templatelets'
+require 'buildmaster/cotta'
+require 'buildmaster/cotta/in_memory_system'
module BuildMaster
-class CommonTemplateletTest < Test::Unit::TestCase
- def setup
- @site_spec = SiteSpec.new
+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
-
- def test_dummy
end
end
end
\ No newline at end of file