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.81.1 test/package/content_types/test_write_default.rb
write_xlsx-0.81.0 test/package/content_types/test_write_default.rb
write_xlsx-0.80.0 test/package/content_types/test_write_default.rb
write_xlsx-0.79.0 test/package/content_types/test_write_default.rb
write_xlsx-0.78.0 test/package/content_types/test_write_default.rb
write_xlsx-0.77.2 test/package/content_types/test_write_default.rb
write_xlsx-0.77.1 test/package/content_types/test_write_default.rb
write_xlsx-0.77.0 test/package/content_types/test_write_default.rb
write_xlsx-0.76.3 test/package/content_types/test_write_default.rb
write_xlsx-0.76.2 test/package/content_types/test_write_default.rb
write_xlsx-0.76.1 test/package/content_types/test_write_default.rb
write_xlsx-0.76.0 test/package/content_types/test_write_default.rb
write_xlsx-0.75.0 test/package/content_types/test_write_default.rb
write_xlsx-0.74.0 test/package/content_types/test_write_default.rb
write_xlsx-0.73.0 test/package/content_types/test_write_default.rb
write_xlsx-0.72.3.beta1 test/package/content_types/test_write_default.rb
write_xlsx-0.72.2 test/package/content_types/test_write_default.rb
write_xlsx-0.72.1 test/package/content_types/test_write_default.rb
write_xlsx-0.72.0 test/package/content_types/test_write_default.rb
write_xlsx-0.71.0 test/package/content_types/test_write_default.rb