Sha256: e731522bcc01b87924927ed97e9e4be34771b0ef7fe7b046e7a33f3529d195a7

Contents?: true

Size: 402 Bytes

Versions: 3

Compression:

Stored size: 402 Bytes

Contents

require "spec_helper"

describe Rocx::Properties::Kerning do
  include ValuePropertyTestMacros

  it_should_use tag: :kern, name: "kerning", value: 22

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

  with_value(-20) do
    it_should_not_work
  end

  with_value(23.1) do
    it_should_not_work
  end

  with_value(:big) 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/kerning_spec.rb
rocx-0.6.0 spec/properties/kerning_spec.rb
rocx-0.5.8 spec/properties/kerning_spec.rb