Sha256: 0eb34bf6ee8bd1c3b17b92f61a253368fc3361411c7ad563f32110db4efff8be

Contents?: true

Size: 480 Bytes

Versions: 2

Compression:

Stored size: 480 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :Choice, name: "markup_compatibility_choice"

  with_no_attributes_set do
    it_should_output "<mc:Choice/>", assign: false
  end

  for_attribute(:Required) do
    with_value("wps") do
      it_should_assign_successfully
      it_should_output_regular_xml
    end

    with_value(1234) do
      it_should_raise_an_exception
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openxml-docx-0.10.1 spec/elements/markup_compatibility_choice_spec.rb
openxml-docx-0.10.0 spec/elements/markup_compatibility_choice_spec.rb