Sha256: 39b6d1070b3a03ce0120bf518860ce5c063912b6ef5229884357d6b881aeee9e
Contents?: true
Size: 855 Bytes
Versions: 1
Compression:
Stored size: 855 Bytes
Contents
require 'tc_helper.rb' class TestPie3DChart < Test::Unit::TestCase def setup p = Axlsx::Package.new ws = p.workbook.add_worksheet @row = ws.add_row ["one", 1, Time.now] @chart = ws.add_chart Axlsx::Pie3DChart, :title => "fishery" end def teardown end def test_initialization assert_equal(@chart.view_3D.rot_x, 30, "view 3d default rot_x incorrect") assert_equal(@chart.view_3D.perspective, 30, "view_3d default perspective incorrect") assert_equal(@chart.series_type, Axlsx::PieSeries, "series type incorrect") end def test_to_xml schema = Nokogiri::XML::Schema(File.open(Axlsx::DRAWING_XSD)) doc = Nokogiri::XML(@chart.to_xml_string) errors = schema.validate(doc).map {|error| puts error.message; error } assert(errors.empty?, "error free validation") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caxlsx-3.2.0 | test/drawing/tc_pie_3D_chart.rb |