Sha256: 5ff519c42048f9c8aab58471519a85cdc0ebbed8ef5d316c0c02adbbad78a02a

Contents?: true

Size: 410 Bytes

Versions: 10

Compression:

Stored size: 410 Bytes

Contents

require "spec_helper"

describe OpenXml::Docx::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

10 entries across 10 versions & 1 rubygems

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