Sha256: e592fc580e1b5dccc38ad06598c4267620db9cdf630b4c26f57d56303bd35a59

Contents?: true

Size: 428 Bytes

Versions: 35

Compression:

Stored size: 428 Bytes

Contents

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

class TestWriteOverride < Test::Unit::TestCase
  def test_assemble_xml_file
    @obj = Writexlsx::Package::ContentTypes.new
    @obj.__send__('write_override', '/docProps/core.xml', 'app...')
    result = @obj.xml_str
    expected = '<Override PartName="/docProps/core.xml" ContentType="app..."/>'
    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_override.rb
write_xlsx-0.81.0 test/package/content_types/test_write_override.rb
write_xlsx-0.80.0 test/package/content_types/test_write_override.rb
write_xlsx-0.79.0 test/package/content_types/test_write_override.rb
write_xlsx-0.78.0 test/package/content_types/test_write_override.rb
write_xlsx-0.77.2 test/package/content_types/test_write_override.rb
write_xlsx-0.77.1 test/package/content_types/test_write_override.rb
write_xlsx-0.77.0 test/package/content_types/test_write_override.rb
write_xlsx-0.76.3 test/package/content_types/test_write_override.rb
write_xlsx-0.76.2 test/package/content_types/test_write_override.rb
write_xlsx-0.76.1 test/package/content_types/test_write_override.rb
write_xlsx-0.76.0 test/package/content_types/test_write_override.rb
write_xlsx-0.75.0 test/package/content_types/test_write_override.rb
write_xlsx-0.74.0 test/package/content_types/test_write_override.rb
write_xlsx-0.73.0 test/package/content_types/test_write_override.rb
write_xlsx-0.72.3.beta1 test/package/content_types/test_write_override.rb
write_xlsx-0.72.2 test/package/content_types/test_write_override.rb
write_xlsx-0.72.1 test/package/content_types/test_write_override.rb
write_xlsx-0.72.0 test/package/content_types/test_write_override.rb
write_xlsx-0.71.0 test/package/content_types/test_write_override.rb