Sha256: 837d27961fbe754c8caf2824d8c57569bf4e026151cf302d4bbb91a022834b3c

Contents?: true

Size: 619 Bytes

Versions: 3

Compression:

Stored size: 619 Bytes

Contents

require "spec_helper"

describe Rocx::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

3 entries across 3 versions & 1 rubygems

Version Path
rocx-0.7.0 spec/properties/language_spec.rb
rocx-0.6.0 spec/properties/language_spec.rb
rocx-0.5.8 spec/properties/language_spec.rb