Sha256: fb2a6ffc5b002da3d26da41c95e6173224709758aa1e2b363d37aa4ac6086628

Contents?: true

Size: 1009 Bytes

Versions: 6

Compression:

Stored size: 1009 Bytes

Contents

require "spec_helper"

describe OpenXml::Docx::Package do
  attr_reader :package

  context "when starting a new package" do
    before(:each) do
      @package = described_class.new
    end

    it "should create the content types part" do
      expect(package.content_types).to be_instance_of(OpenXml::Parts::ContentTypes)
    end

    it "should create the document part" do
      expect(package.document).to be_instance_of(OpenXml::Docx::Parts::Document)
    end

    it "should create the global rels part" do
      expect(package.rels).to be_instance_of(OpenXml::Parts::Rels)
    end

    it "should create the document's _rels part" do
      expect(package.document.relationships).to be_instance_of(OpenXml::Parts::Rels)
    end

    it "should create the settings part" do
      expect(package.settings).to be_instance_of(OpenXml::Docx::Parts::Settings)
    end

    it "should create the styles part" do
      expect(package.styles).to be_instance_of(OpenXml::Docx::Parts::Styles)
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
openxml-docx-0.10.6 spec/package_spec.rb
openxml-docx-0.10.5 spec/package_spec.rb
openxml-docx-0.10.4 spec/package_spec.rb
openxml-docx-0.10.3 spec/package_spec.rb
openxml-docx-0.10.2 spec/package_spec.rb
openxml-docx-0.10.1 spec/package_spec.rb