Sha256: cffa2b03d64fb6fdc974b0722ce24fd8aabfa566b8532ee3e56ce7b8a706ee28

Contents?: true

Size: 802 Bytes

Versions: 3

Compression:

Stored size: 802 Bytes

Contents

require "spec_helper"

describe Rocx::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

3 entries across 3 versions & 1 rubygems

Version Path
rocx-0.7.0 spec/properties/textbox_tight_wrap_spec.rb
rocx-0.6.0 spec/properties/textbox_tight_wrap_spec.rb
rocx-0.5.8 spec/properties/textbox_tight_wrap_spec.rb