Sha256: 0fc07868d4b17c2b3c2bbe08d52b4b2b98ee581551d4a6587f144d045766e3de
Contents?: true
Size: 771 Bytes
Versions: 2
Compression:
Stored size: 771 Bytes
Contents
require "spec_helper" describe Rocx::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 = Rocx::Elements::Text.new("Smucker's Preserves") run = Rocx::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 |
---|---|
rocx-0.7.0 | spec/elements/bidi_embed_spec.rb |
rocx-0.6.0 | spec/elements/bidi_embed_spec.rb |