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

Version Path
write_xlsx-0.72.3.beta1 test/package/table/test_write_auto_filter.rb
write_xlsx-0.72.2 test/package/table/test_write_auto_filter.rb
write_xlsx-0.72.1 test/package/table/test_write_auto_filter.rb
write_xlsx-0.72.0 test/package/table/test_write_auto_filter.rb
write_xlsx-0.71.0 test/package/table/test_write_auto_filter.rb
write_xlsx-0.70.0 test/package/table/test_write_auto_filter.rb
write_xlsx-0.69.0 test/package/table/test_write_auto_filter.rb
write_xlsx-0.65.1 test/package/table/test_write_auto_filter.rb
write_xlsx-0.65.0 test/package/table/test_write_auto_filter.rb
write_xlsx-0.64.1 test/package/table/test_write_auto_filter.rb
write_xlsx-0.64.0 test/package/table/test_write_auto_filter.rb
write_xlsx-0.62.0 test/package/table/test_write_auto_filter.rb
write_xlsx-0.61.0 test/package/table/test_write_auto_filter.rb
write_xlsx-0.60.0 test/package/table/test_write_auto_filter.rb
write_xlsx-0.59.0 test/package/table/test_write_auto_filter.rb