Sha256: 5779f3b1632520f9ecd8d4128ea10dd9239a5cea4c0a5f0cf800bf26b6e8c6fb

Contents?: true

Size: 915 Bytes

Versions: 10

Compression:

Stored size: 915 Bytes

Contents

require "spec_helper"

describe OpenXml::Docx::Properties::Effect do
  include ValuePropertyTestMacros

  it_should_use tag: :effect, name: "effect", value: :none

  with_value(:antsBlack) do
    it_should_work
    it_should_output "<w:effect w:val=\"antsBlack\"/>"
  end

  with_value(:antsRed) do
    it_should_work
    it_should_output "<w:effect w:val=\"antsRed\"/>"
  end

  with_value(:blinkBackground) do
    it_should_work
    it_should_output "<w:effect w:val=\"blinkBackground\"/>"
  end

  with_value(:lights) do
    it_should_work
    it_should_output "<w:effect w:val=\"lights\"/>"
  end

  with_value(:none) do
    it_should_work
    it_should_output "<w:effect w:val=\"none\"/>"
  end

  with_value(:shimmer) do
    it_should_work
    it_should_output "<w:effect w:val=\"shimmer\"/>"
  end

  with_value(:sparkle) do
    it_should_work
    it_should_output "<w:effect w:val=\"sparkle\"/>"
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

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