Sha256: 1970b43b334224b0272efbbcb198d797b8d52e20f04f69d469796dbd4d2723fc

Contents?: true

Size: 821 Bytes

Versions: 4

Compression:

Stored size: 821 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hydra-pbcore-1.1.3 spec/templates_spec.rb
hydra-pbcore-1.1.2 spec/templates_spec.rb
hydra-pbcore-1.1.1 spec/templates_spec.rb
hydra-pbcore-1.1.0 spec/templates_spec.rb