Sha256: 3f2e9e2c347ecf8a5863af1b907650f24f06d7262325fce8e5c3433dccb71f5d
Contents?: true
Size: 743 Bytes
Versions: 2
Compression:
Stored size: 743 Bytes
Contents
require "spec_helper" describe OpenXml::Docx::Elements::BidiOverride do include ElementTestMacros it_should_use tag: :bdo, name: "bidi_override" for_attribute(:direction, displays_as: :val, with_namespace: :w) do allowed = %i(rtl ltr) with_values(allowed) do it_should_assign_successfully it_should_output_regular_xml end end context "with children" do before(:each) do @instance = described_class.new text = OpenXml::Docx::Elements::Text.new("Smucker's Preserves") run = OpenXml::Docx::Elements::Run.new run << text instance << run end it_should_output "<w:bdo>\n <w:r>\n <w:t>Smucker's Preserves</w:t>\n </w:r>\n </w:bdo>", assign: false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
openxml-docx-0.10.1 | spec/elements/bidi_override_spec.rb |
openxml-docx-0.10.0 | spec/elements/bidi_override_spec.rb |