Sha256: e9504d0c997850e2c19b215f9319ea50edd681aaae65c0d0458192cbb106b2c4

Contents?: true

Size: 652 Bytes

Versions: 8

Compression:

Stored size: 652 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :color, name: "color"

  for_attribute(:theme_color) do
    it_should_assign_and_output_xml :hyperlink
    it_should_not_allow_invalid_value
  end

  for_attribute(:theme_shade) do
    it_should_assign_and_output_xml "BF"
    it_should_not_allow_invalid_value
  end

  for_attribute(:theme_tint) do
    it_should_assign_and_output_xml "BF"
    it_should_not_allow_invalid_value
  end

  for_attribute(:color) do
    values = %i(D99694 auto)
    it_should_assign_and_output_xml values
    it_should_not_allow_invalid_value
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
openxml-docx-0.10.6 spec/properties/color_spec.rb
openxml-docx-0.10.5 spec/properties/color_spec.rb
openxml-docx-0.10.4 spec/properties/color_spec.rb
openxml-docx-0.10.3 spec/properties/color_spec.rb
openxml-docx-0.10.2 spec/properties/color_spec.rb
openxml-docx-0.10.1 spec/properties/color_spec.rb
openxml-docx-0.10.0 spec/properties/color_spec.rb
openxml-docx-0.9.0 spec/properties/color_spec.rb