Sha256: 764acb6b8f3a30887485959893ba4d13ad86f852397efde00387914ebdc3a27b

Contents?: true

Size: 486 Bytes

Versions: 10

Compression:

Stored size: 486 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

10 entries across 10 versions & 2 rubygems

Version Path
fast_excel-0.4.1 test/default_format_test.rb
fast_excel-0.4.0 test/default_format_test.rb
fast_excel-0.3.0 test/default_format_test.rb
fast_excel-0.2.6 test/default_format_test.rb
fast_excel-0.2.5 test/default_format_test.rb
fast_excel-0.2.3 test/default_format_test.rb
fast_excel-0.2.2 test/default_format_test.rb
kmadej_fast_excel_fork-0.2.2 test/default_format_test.rb
fast_excel-0.2.1 test/default_format_test.rb
fast_excel-0.2.0 test/default_format_test.rb