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