Sha256: b36e155a3bd117b4a3511a1b9ba45146e525ff3a0081fbb595a56f8a94b12108

Contents?: true

Size: 1.2 KB

Versions: 7

Compression:

Stored size: 1.2 KB

Contents

# -*- coding: utf-8 -*-
require 'helper'

class TestRegressionProperties01 < Test::Unit::TestCase
  def setup
    setup_dir_var
  end

  def teardown
    @tempfile.close(true)
  end

  def test_properties01
    @xlsx = 'properties01.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet = workbook.add_worksheet

    workbook.set_properties(
                            :title    => 'This is an example spreadsheet',
                            :subject  => 'With document properties',
                            :author   => 'Someone',
                            :manager  => 'Dr. Heinz Doofenshmirtz',
                            :company  => 'of Wolves',
                            :category => 'Example spreadsheets',
                            :keywords => 'Sample, Example, Properties',
                            :comments => 'Created with Perl and Excel::Writer::XLSX',
                            :status   => 'Quo'
                            )

    worksheet.set_column('A:A', 70)
    worksheet.write('A1', "Select 'Office Button -> Prepare -> Properties' to see the file properties.")

    workbook.close
    compare_for_regression(
      nil,
      { 'xl/workbook.xml' => ['<workbookView'] }
    )
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
write_xlsx-0.86.0 test/regression/test_properties01.rb
write_xlsx-0.85.11 test/regression/test_properties01.rb
write_xlsx-0.85.10 test/regression/test_properties01.rb
write_xlsx-0.85.9 test/regression/test_properties01.rb
write_xlsx-0.85.8 test/regression/test_properties01.rb
write_xlsx-0.85.7 test/regression/test_properties01.rb
write_xlsx-0.85.6 test/regression/test_properties01.rb