Sha256: b0de1f4c89ad289a7213482006b68b1ce6a7ba1c0333136832f41a168a302991

Contents?: true

Size: 523 Bytes

Versions: 7

Compression:

Stored size: 523 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :graphicData, name: "graphic_data"

  for_attribute(:uri) do
    with_value("http://schemas.microsoft.com/office/word/2010/wordprocessingShape") do
      it_should_assign_successfully
      it_should_output "<a:graphicData 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/graphic_data_spec.rb
openxml-docx-0.10.5 spec/elements/drawingml/graphic_data_spec.rb
openxml-docx-0.10.4 spec/elements/drawingml/graphic_data_spec.rb
openxml-docx-0.10.3 spec/elements/drawingml/graphic_data_spec.rb
openxml-docx-0.10.2 spec/elements/drawingml/graphic_data_spec.rb
openxml-docx-0.10.1 spec/elements/drawingml/graphic_data_spec.rb
openxml-docx-0.10.0 spec/elements/drawingml/graphic_data_spec.rb