Sha256: fd227becf01f2c69340fde468f25a0ca78257edcfb9b404b3908403cf172ecc5

Contents?: true

Size: 395 Bytes

Versions: 7

Compression:

Stored size: 395 Bytes

Contents

# -*- coding: utf-8 -*-
require 'helper'
require 'write_xlsx/drawing'

class TestWriteColOff < Minitest::Test
  def setup
    @drawing = Writexlsx::Drawing.new
  end

  def test_write_col_off
    expected = '<xdr:colOff>457200</xdr:colOff>'

    @drawing.__send__(:write_col_off, 457200)
    result = @drawing.instance_variable_get(:@writer).string

    assert_equal(expected, result)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
write_xlsx-1.00.0 test/drawing/test_write_col_off.rb
write_xlsx-0.99.0 test/drawing/test_write_col_off.rb
write_xlsx-0.97.0 test/drawing/test_write_col_off.rb
write_xlsx-0.90.0 test/drawing/test_write_col_off.rb
write_xlsx-0.89.0 test/drawing/test_write_col_off.rb
write_xlsx-0.88.0 test/drawing/test_write_col_off.rb
write_xlsx-0.87.0 test/drawing/test_write_col_off.rb