Sha256: b724191ea5a9df25e09b3ebbb0fa1df5a9173cacacba026702c61e83fb9be2f4

Contents?: true

Size: 338 Bytes

Versions: 5

Compression:

Stored size: 338 Bytes

Contents

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

class TestWriteLegendPos < Minitest::Test
  def setup
    @chart = Writexlsx::Chart.new('Bar')
  end

  def test_write_legend_pos
    expected = '<c:legendPos val="r"/>'
    result = @chart.__send__('write_legend_pos', 'r')
    assert_equal(expected, result)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
write_xlsx-0.97.0 test/chart/test_write_legend_pos.rb
write_xlsx-0.90.0 test/chart/test_write_legend_pos.rb
write_xlsx-0.89.0 test/chart/test_write_legend_pos.rb
write_xlsx-0.88.0 test/chart/test_write_legend_pos.rb
write_xlsx-0.87.0 test/chart/test_write_legend_pos.rb