Sha256: 1aca695596ddc6cd832d0b7eb00985f1f49a42550008423f9b40f04dfbd17392

Contents?: true

Size: 433 Bytes

Versions: 2

Compression:

Stored size: 433 Bytes

Contents

require "spec_helper"

describe OpenXml::DrawingML::Elements::SRGBColor do
  include ElementTestMacros

  it_should_use tag: :srgbClr, name: "srgb_color"

  for_attribute(:value, displays_as: :val) do
    with_value("FFFFFF") do
      it_should_assign_successfully
      it_should_output_regular_xml
    end

    not_allowed = ["blue", :blue, 23]
    with_values(not_allowed) do
      it_should_raise_an_exception
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openxml-docx-0.10.1 spec/elements/drawingml/srgb_color_spec.rb
openxml-docx-0.10.0 spec/elements/drawingml/srgb_color_spec.rb