Sha256: 8095011f585144201eded08d66cdc131e4a2fd3f8eb9a2a98f9a1b9931dba021

Contents?: true

Size: 502 Bytes

Versions: 7

Compression:

Stored size: 502 Bytes

Contents

require "spec_helper"

describe OpenXml::DrawingML::Elements::Extension do
  include ElementTestMacros

  it_should_use tag: :ext, name: "extension"

  for_attribute(:uri) do
    with_value("http://schemas.microsoft.com/office/word/2010/wordprocessingShape") do
      it_should_assign_successfully
      it_should_output "<a:ext uri=\"http://schemas.microsoft.com/office/word/2010/wordprocessingShape\"/>"
    end

    with_value(:not_a_string) do
      it_should_raise_an_exception
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
openxml-docx-0.10.6 spec/elements/drawingml/extension_spec.rb
openxml-docx-0.10.5 spec/elements/drawingml/extension_spec.rb
openxml-docx-0.10.4 spec/elements/drawingml/extension_spec.rb
openxml-docx-0.10.3 spec/elements/drawingml/extension_spec.rb
openxml-docx-0.10.2 spec/elements/drawingml/extension_spec.rb
openxml-docx-0.10.1 spec/elements/drawingml/extension_spec.rb
openxml-docx-0.10.0 spec/elements/drawingml/extension_spec.rb