Sha256: 3a0e05187ebdeac1290ad115c1b1e8a3b67cd117f549cf044d9c688505c96503

Contents?: true

Size: 787 Bytes

Versions: 10

Compression:

Stored size: 787 Bytes

Contents

require 'spec_helper'

module BerkeleyLibrary
  module Util
    module ODS
      module XML
        module Manifest
          describe Manifest do
            let(:doc) { Nokogiri::XML::Document.new }

            attr_reader :manifest

            before(:each) do
              @manifest = Manifest.new(doc: doc)
            end

            describe :add_child do
              it 'adds a FileEntry' do
                entry = FileEntry.new('foo.bar', 'foo/bar', manifest: manifest)
                manifest.add_child(entry)
              end

              it 'adds a non-FileEntry' do
                child = ElementNode.new(:office, 'test', doc: doc)
                manifest.add_child(child)
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
berkeley_library-tind-0.7.2 spec/berkeley_library/util/ods/xml/manifest/manifest_spec.rb
berkeley_library-tind-0.7.1 spec/berkeley_library/util/ods/xml/manifest/manifest_spec.rb
berkeley_library-tind-0.7.0 spec/berkeley_library/util/ods/xml/manifest/manifest_spec.rb
berkeley_library-tind-0.6.0 spec/berkeley_library/util/ods/xml/manifest/manifest_spec.rb
berkeley_library-tind-0.5.1 spec/berkeley_library/util/ods/xml/manifest/manifest_spec.rb
berkeley_library-tind-0.5.0 spec/berkeley_library/util/ods/xml/manifest/manifest_spec.rb
berkeley_library-tind-0.4.3 spec/berkeley_library/util/ods/xml/manifest/manifest_spec.rb
berkeley_library-tind-0.4.2 spec/berkeley_library/util/ods/xml/manifest/manifest_spec.rb
berkeley_library-tind-0.4.1 spec/berkeley_library/util/ods/xml/manifest/manifest_spec.rb
berkeley_library-tind-0.4.0 spec/berkeley_library/util/ods/xml/manifest/manifest_spec.rb