Sha256: 9b86e1829cb14efedf28c2539a721394df4e7f11a69ac5db0cf4a74d9b97e753

Contents?: true

Size: 401 Bytes

Versions: 3

Compression:

Stored size: 401 Bytes

Contents

require "spec_helper"

describe Rocx::Properties::FontSize do
  include ValuePropertyTestMacros

  it_should_use tag: :sz, name: "font_size", value: 22

  with_value(20) do
    it_should_work
    it_should_output "<w:sz 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/font_size_spec.rb
rocx-0.6.0 spec/properties/font_size_spec.rb
rocx-0.5.8 spec/properties/font_size_spec.rb