Sha256: e776d29689935783197802f7131cbf323e2f7602c7da0e5ef309ddab6d509be9

Contents?: true

Size: 719 Bytes

Versions: 10

Compression:

Stored size: 719 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :em, name: "emphasis", value: :circle

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

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

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

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

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

  with_value(:somethingElse) do
    it_should_not_work
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

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