Sha256: 1b777861491ad21ce50a5ff9e0abede0a028f079daa6eb607006b306a8d73069

Contents?: true

Size: 811 Bytes

Versions: 10

Compression:

Stored size: 811 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :textboxTightWrap, name: "textbox_tight_wrap", value: :none

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

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

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

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

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

end

Version data entries

10 entries across 10 versions & 1 rubygems

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