Sha256: 1bcac1f746b7b8f399ef185503a9c57fa1b7055adb1e4cf361ecf18c1ea80377
Contents?: true
Size: 589 Bytes
Versions: 15
Compression:
Stored size: 589 Bytes
Contents
# -*- coding: utf-8 -*- require 'helper' require 'write_xlsx' require 'stringio' class TestTableWriteAutoFilter01 < Test::Unit::TestCase def setup workbook = WriteXLSX.new(StringIO.new) @worksheet = workbook.add_worksheet end def test_table_write_auto_filter expected = '<autoFilter ref="C3:F13"/>' table = Writexlsx::Package::Table.new(@worksheet, 0, 1, 1, 2, 2) table.instance_variable_set(:@autofilter, 'C3:F13') table.__send__(:write_auto_filter) result = table.instance_variable_get(:@writer).string assert_equal(expected, result) end end
Version data entries
15 entries across 15 versions & 1 rubygems