require 'spec_helper' describe HydraPbcore::Templates do before :each do class TestClass def self.define_template arg end include HydraPbcore::Templates end @test = TestClass.new end describe "#digital_instantiation" do it "should return a template for a digital instantiaion" do save_template @test.digital_instantiation, "digital_instantiation_template.xml" equivalent_xml_files("digital_instantiation_template.xml").should be_true end end describe "#physical_instantiation" do it "should create a template for physical instantiaions such as tapes" do save_template @test.physical_instantiation, "physical_instantiation_template.xml" equivalent_xml_files("physical_instantiation_template.xml").should be_true end end end