Sha256: d2246207b989387ed18fcc56f33a3d39168cd5241e654dcdcc23f4ba2c974921

Contents?: true

Size: 479 Bytes

Versions: 3

Compression:

Stored size: 479 Bytes

Contents

require "spec_helper"

describe Rocx::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

3 entries across 3 versions & 1 rubygems

Version Path
rocx-0.7.0 spec/properties/character_spacing_spec.rb
rocx-0.6.0 spec/properties/character_spacing_spec.rb
rocx-0.5.8 spec/properties/character_spacing_spec.rb