Sha256: ba596d7a7037a5851a3141d535928dc7149fcebccc1e470b91574b3a1055d410

Contents?: true

Size: 302 Bytes

Versions: 10

Compression:

Stored size: 302 Bytes

Contents

require 'test_helper'

class CellTest < MiniTest::Test
  def test_can_add_style
    p = Axlsx::Package.new
    wb = p.workbook
    sheet = wb.add_worksheet
    row = sheet.add_row ["x", "y"]
    cell = row.cells.first

    cell.add_style b: true
    assert_equal({ b: true }, cell.raw_style)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
axlsx_styler-0.1.5 test/cell_test.rb
axlsx_styler-0.1.3 test/cell_test.rb
axlsx_styler-0.1.2 test/cell_test.rb
axlsx_styler-0.1.1 test/cell_test.rb
axlsx_styler-0.1.0 test/cell_test.rb
axlsx_styler-0.0.5 test/cell_test.rb
axlsx_styler-0.0.4 test/cell_test.rb
axlsx_styler-0.0.3 test/cell_test.rb
axlsx_styler-0.0.2 test/cell_test.rb
axlsx_styler-0.0.1 test/cell_test.rb