Sha256: 59801a0c4013232ac15d67023a434f9a919aa1cad91d7258b03aa3cd107c485f

Contents?: true

Size: 503 Bytes

Versions: 8

Compression:

Stored size: 503 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :del, name: "deleted_text"

  for_attribute(:space) do
    with_value(nil) do
      it_should_assign_successfully
      it_should_output "<w:del/>"
    end

    with_value(:preserve) do
      it_should_assign_successfully
      it_should_output "<w:del xml:space=\"preserve\"/>"
    end

    with_value(:the_final_frontier) do
      it_should_raise_an_exception
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
openxml-docx-0.10.6 spec/elements/deleted_text_spec.rb
openxml-docx-0.10.5 spec/elements/deleted_text_spec.rb
openxml-docx-0.10.4 spec/elements/deleted_text_spec.rb
openxml-docx-0.10.3 spec/elements/deleted_text_spec.rb
openxml-docx-0.10.2 spec/elements/deleted_text_spec.rb
openxml-docx-0.9.0 spec/elements/deleted_text_spec.rb
openxml-docx-0.8.0 spec/elements/deleted_text_spec.rb
openxml-docx-0.8.0.beta1 spec/elements/deleted_text_spec.rb