Sha256: ec9a8c847665d6b97b06d56a17ad5c8afeca04a1a1b509cabb1a2b09339458e7

Contents?: true

Size: 487 Bytes

Versions: 1

Compression:

Stored size: 487 Bytes

Contents

require_relative 'test_helper'

describe "FastExcel default_format" do

  it "should set default format values on init" do
    workbook = FastExcel.open(default_format: {
      font_size: 17,
      font_family: "ArialFoo",
      bold: true
    })

    # FastExcel.print_ffi_obj(workbook.default_format)

    assert_equal("ArialFoo", workbook.default_format.font_family)
    assert_equal(17, workbook.default_format.font_size)
    assert_equal(1, workbook.default_format.bold)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fast_excel-0.5.0 test/default_format_test.rb