Sha256: 5d8308620592f46ce46f1af02f8e454bcf4e7494e8e1ec9dcbc9107afd3660b3
Contents?: true
Size: 685 Bytes
Versions: 1
Compression:
Stored size: 685 Bytes
Contents
require 'tc_helper.rb' class TestVmlDrawing < Test::Unit::TestCase def setup p = Axlsx::Package.new wb = p.workbook @ws = wb.add_worksheet @ws.add_comment :ref => 'A1', :text => 'penut machine', :author => 'crank' @ws.add_comment :ref => 'C3', :text => 'rust bucket', :author => 'PO' @vml_drawing = @ws.comments.vml_drawing end def test_initialize assert_raise(ArgumentError) { Axlsx::VmlDrawing.new } end def test_to_xml_string str = @vml_drawing.to_xml_string() doc = Nokogiri::XML(str) assert_equal(doc.xpath("//v:shape").size, 2) assert(doc.xpath("//o:idmap[@o:data='#{@ws.index+1}']")) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caxlsx-3.2.0 | test/drawing/tc_vml_drawing.rb |