Sha256: 6de81b9d7cb6f6d58106d149b8ae14ccb9e49a225a85e80837ea5f9b5e49ff7c

Contents?: true

Size: 425 Bytes

Versions: 6

Compression:

Stored size: 425 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :charset, name: "font_character_set"

  for_attribute(:character_set) do
    with_value("String") do
      it_should_assign_successfully
      it_should_output "<w:charset w:characterSet=\"String\"/>"
    end

    with_value(:somethingElse) 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_character_set_spec.rb
openxml-docx-0.10.5 spec/elements/font_character_set_spec.rb
openxml-docx-0.10.4 spec/elements/font_character_set_spec.rb
openxml-docx-0.10.3 spec/elements/font_character_set_spec.rb
openxml-docx-0.10.2 spec/elements/font_character_set_spec.rb
openxml-docx-0.10.1 spec/elements/font_character_set_spec.rb