Sha256: 7bb0f29d73ba87ec8b65a119ba95f58430d97ed633dacd3eac8ac5fff147566d

Contents?: true

Size: 395 Bytes

Versions: 7

Compression:

Stored size: 395 Bytes

Contents

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

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

  def test_write_row_off
    expected = '<xdr:rowOff>104775</xdr:rowOff>'

    @drawing.__send__(:write_row_off, 104775)
    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_row_off.rb
write_xlsx-0.99.0 test/drawing/test_write_row_off.rb
write_xlsx-0.97.0 test/drawing/test_write_row_off.rb
write_xlsx-0.90.0 test/drawing/test_write_row_off.rb
write_xlsx-0.89.0 test/drawing/test_write_row_off.rb
write_xlsx-0.88.0 test/drawing/test_write_row_off.rb
write_xlsx-0.87.0 test/drawing/test_write_row_off.rb