Sha256: 1b95638522000c2117bf14df022554c7ba220c1eb33508b0a9142075f82a970f

Contents?: true

Size: 462 Bytes

Versions: 6

Compression:

Stored size: 462 Bytes

Contents

require "spec_helper"

describe OpenXml::Docx::Elements::FontPitch do
  include ElementTestMacros

  it_should_use tag: :pitch, name: "font_pitch"

  for_attribute(:value) do
    %i(default fixed variable).each do |good_value|
      with_value(good_value) do
        it_should_assign_successfully
        it_should_output "<w:pitch w:val=\"#{good_value}\"/>"
      end
    end

    with_value(:bad_value) do
      it_should_raise_an_exception
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
openxml-docx-0.10.6 spec/elements/font_pitch_spec.rb
openxml-docx-0.10.5 spec/elements/font_pitch_spec.rb
openxml-docx-0.10.4 spec/elements/font_pitch_spec.rb
openxml-docx-0.10.3 spec/elements/font_pitch_spec.rb
openxml-docx-0.10.2 spec/elements/font_pitch_spec.rb
openxml-docx-0.10.1 spec/elements/font_pitch_spec.rb