Sha256: 96ee0f0a1e3321b7514bc9f13209571873b5b21406241878b07f94c2cdd1ac5b

Contents?: true

Size: 494 Bytes

Versions: 2

Compression:

Stored size: 494 Bytes

Contents

require "spec_helper"

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

2 entries across 2 versions & 1 rubygems

Version Path
rocx-0.7.0 spec/elements/deleted_text_spec.rb
rocx-0.6.0 spec/elements/deleted_text_spec.rb