Sha256: b88bacac46f6487352017fe80b231f6f189fe9ac7fdb7679df35d9fd7ae6f510

Contents?: true

Size: 488 Bytes

Versions: 10

Compression:

Stored size: 488 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :spacing, name: "character_spacing", value: 1

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

  with_value(-230) do
    it_should_work
    it_should_output "<w:spacing w:val=\"-230\"/>"
  end

  with_value(4.2) do
    it_should_not_work
  end

  with_value(:twelve) 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/character_spacing_spec.rb
openxml-docx-0.10.5 spec/properties/character_spacing_spec.rb
openxml-docx-0.10.4 spec/properties/character_spacing_spec.rb
openxml-docx-0.10.3 spec/properties/character_spacing_spec.rb
openxml-docx-0.10.2 spec/properties/character_spacing_spec.rb
openxml-docx-0.10.1 spec/properties/character_spacing_spec.rb
openxml-docx-0.10.0 spec/properties/character_spacing_spec.rb
openxml-docx-0.9.0 spec/properties/character_spacing_spec.rb
openxml-docx-0.8.0 spec/properties/character_spacing_spec.rb
openxml-docx-0.8.0.beta1 spec/properties/character_spacing_spec.rb