Sha256: f49d683e7f383150331f728cd05c3a3a9b9042306881c2e23f3f223f667a93d4

Contents?: true

Size: 434 Bytes

Versions: 6

Compression:

Stored size: 434 Bytes

Contents

require "spec_helper"

describe OpenXml::Docx::Elements::FontPanoseOne do
  include ElementTestMacros

  it_should_use tag: :panose1, name: "font_panose_one"

  for_attribute(:value) do
    with_value("ABCDE1234567890") do
      it_should_assign_successfully
      it_should_output "<w:panose1 w:val=\"ABCDE1234567890\"/>"
    end

    with_value("Not a string of hex digits") do
      it_should_raise_an_exception
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

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