Sha256: 72f60bcca461ba6e494c44256f221773fd2990b1d3491d2cf4c3e16937f5885b

Contents?: true

Size: 628 Bytes

Versions: 2

Compression:

Stored size: 628 Bytes

Contents

require "spec_helper"

describe OpenXml::Docx::Properties::Language do
  include PropertyTestMacros

  it_should_use tag: :lang, name: "language"

  for_attribute(:bidi) do
    with_value("en-US") do
      it_should_assign_successfully
      it_should_output "<w:lang w:bidi=\"en-US\"/>"
    end
  end

  for_attribute(:east_asia) do
    with_value("ko-KR") do
      it_should_assign_successfully
      it_should_output "<w:lang w:eastAsia=\"ko-KR\"/>"
    end
  end

  for_attribute(:latin) do
    with_value("fr-CA") do
      it_should_assign_successfully
      it_should_output "<w:lang w:val=\"fr-CA\"/>"
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openxml-docx-0.8.0 spec/properties/language_spec.rb
openxml-docx-0.8.0.beta1 spec/properties/language_spec.rb