Sha256: 52880a0f9de26aad5e274b681671889d0b363577ab029198e1cb54d0ecdbd6b9

Contents?: true

Size: 350 Bytes

Versions: 19

Compression:

Stored size: 350 Bytes

Contents

# -*- coding: utf-8 -*-
require 'helper'
require 'write_xlsx'
require 'stringio'

class TestDefinedName < Minitest::Test
  def setup
    @workbook = WriteXLSX.new(StringIO.new)
  end

  def test_define_name_should_not_change_formula_string
    formula = '=0.98'
    @workbook.define_name('Name', formula)
    assert_equal('=0.98', formula)
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
write_xlsx-1.09.4 test/workbook/test_define_name.rb
write_xlsx-1.09.3 test/workbook/test_define_name.rb
write_xlsx-1.09.2 test/workbook/test_define_name.rb
write_xlsx-1.09.1 test/workbook/test_define_name.rb
write_xlsx-1.09.0 test/workbook/test_define_name.rb
write_xlsx-1.08.2 test/workbook/test_define_name.rb
write_xlsx-1.08.1 test/workbook/test_define_name.rb
write_xlsx-1.08.0 test/workbook/test_define_name.rb
write_xlsx-1.07.0 test/workbook/test_define_name.rb
write_xlsx-1.04.0 test/workbook/test_define_name.rb
write_xlsx-1.02.0 test/workbook/test_define_name.rb
write_xlsx-1.01.0 test/workbook/test_define_name.rb
write_xlsx-1.00.0 test/workbook/test_define_name.rb
write_xlsx-0.99.0 test/workbook/test_define_name.rb
write_xlsx-0.97.0 test/workbook/test_define_name.rb
write_xlsx-0.90.0 test/workbook/test_define_name.rb
write_xlsx-0.89.0 test/workbook/test_define_name.rb
write_xlsx-0.88.0 test/workbook/test_define_name.rb
write_xlsx-0.87.0 test/workbook/test_define_name.rb