Sha256: 0b56e061029b6de0835b2788ae74263d0d3e2de6f57d93d5b044408ea70cfaf5
Contents?: true
Size: 798 Bytes
Versions: 3
Compression:
Stored size: 798 Bytes
Contents
require "spec_helper" describe OpenXml::Docx::Elements::BidiEmbed do include ElementTestMacros it_should_use tag: :dir, name: "bidi_embed" for_attribute(:direction) do with_value(:rtl) do it_should_assign_successfully it_should_output "<w:dir w:val=\"rtl\"/>" end with_value(:ltr) do it_should_assign_successfully it_should_output "<w:dir w:val=\"ltr\"/>" 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
openxml-docx-0.9.0 | spec/elements/bidi_embed_spec.rb |
openxml-docx-0.8.0 | spec/elements/bidi_embed_spec.rb |
openxml-docx-0.8.0.beta1 | spec/elements/bidi_embed_spec.rb |