Sha256: 26bfc2d14fa6f70cac491090c4fcf186bfae96cbf11820e4decd866adcd70608

Contents?: true

Size: 414 Bytes

Versions: 35

Compression:

Stored size: 414 Bytes

Contents

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

class TestWriteDefault < Test::Unit::TestCase
  def test_assemble_xml_file
    @obj = Writexlsx::Package::ContentTypes.new
    @obj.__send__('write_default', 'xml', 'application/xml')
    result = @obj.xml_str
    expected = '<Default Extension="xml" ContentType="application/xml"/>'
    assert_equal(expected, result)
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
write_xlsx-0.70.0 test/package/content_types/test_write_default.rb
write_xlsx-0.69.0 test/package/content_types/test_write_default.rb
write_xlsx-0.65.1 test/package/content_types/test_write_default.rb
write_xlsx-0.65.0 test/package/content_types/test_write_default.rb
write_xlsx-0.64.1 test/package/content_types/test_write_default.rb
write_xlsx-0.64.0 test/package/content_types/test_write_default.rb
write_xlsx-0.62.0 test/package/content_types/test_write_default.rb
write_xlsx-0.61.0 test/package/content_types/test_write_default.rb
write_xlsx-0.60.0 test/package/content_types/test_write_default.rb
write_xlsx-0.59.0 test/package/content_types/test_write_default.rb
write_xlsx-0.58.0 test/package/content_types/test_write_default.rb
write_xlsx-0.57.0 test/package/content_types/test_write_default.rb
write_xlsx-0.56.0 test/package/content_types/test_write_default.rb
write_xlsx-0.55.0 test/package/content_types/test_write_default.rb
write_xlsx-0.54.0 test/package/content_types/test_write_default.rb