Sha256: fb96707e729adbcde87a29177313dfc305855fe564d09241abec3b6be23422f4

Contents?: true

Size: 375 Bytes

Versions: 2

Compression:

Stored size: 375 Bytes

Contents

require "spec_helper"

describe Rocx::Elements::ContentPart do
  include ElementTestMacros

  it_should_use tag: :contentPart, name: "content_part"

  for_attribute(:id) do
    with_value("rId8") do
      it_should_assign_successfully
      it_should_output "<w:contentPart r:id=\"rId8\"/>"
    end

    with_value("") 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/content_part_spec.rb
rocx-0.6.0 spec/elements/content_part_spec.rb