Sha256: ecb5859c0d9f6e93dcdb65b48190a4c76eab5658f3f89416f6c65790e19d5e37
Contents?: true
Size: 737 Bytes
Versions: 2
Compression:
Stored size: 737 Bytes
Contents
require "spec_helper" describe OpenXml::Docx::Elements::BidiEmbed do include ElementTestMacros it_should_use tag: :dir, name: "bidi_embed" 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:dir>\n <w:r>\n <w:t>Smucker's Preserves</w:t>\n </w:r>\n </w:dir>", assign: false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
openxml-docx-0.10.1 | spec/elements/bidi_embed_spec.rb |
openxml-docx-0.10.0 | spec/elements/bidi_embed_spec.rb |