Sha256: 90ea214179e5b21148dd86a9029df976c1cbd8d23ad2ba5bcc5cde8685d8bab1
Contents?: true
Size: 1.3 KB
Versions: 2
Compression:
Stored size: 1.3 KB
Contents
require 'spec_helper' module Docxtor2 describe Package::Document::Paragraph do include_context 'xmlbuilder' do subject { render(Package::Document::Paragraph, "text1", :b => true) do style 123 spacing :before => 80, :after => 240 font_size 32 font_size_complex 30 indent :start => 720 i; u w "text2"; br; w "text3" end } it 'contains reference to style' do subject.should contain_element_style(:p) end it 'contains spacing property' do subject.should contain_element_property(:p, :spacing) end it 'contains font size property' do subject.should contain_element_property(:p, :sz) end it 'contains complex font size property' do subject.should contain_element_property(:p, :szCs) end it 'contains indentiation property' do subject.should contain_element_property(:p, :ind) end context 'nested run' do it 'is bold' do subject.should contain_element_property(:r, :b) end it 'is italic' do subject.should contain_element_property(:r, :i) end it 'is underlined' do subject.should contain_element_property(:r, :u) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
docxtor2-0.0.9 | spec/docxtor2/package/document/paragraph_spec.rb |
docxtor2-0.1.0 | spec/docxtor2/package/document/paragraph_spec.rb |