Sha256: b999273b51b5f4c56a3477deaf2a7fe3bc516746658ed5fbc79c8b064f9e032f

Contents?: true

Size: 425 Bytes

Versions: 10

Compression:

Stored size: 425 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :hps, name: "font_size", value: 1

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

  with_value(-24) do
    it_should_not_work
  end

  with_value(:big) do
    it_should_not_work
  end

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