write_xlsx 0.54.0 → 0.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- require 'helper'
3
- require 'write_xlsx'
4
- require 'stringio'
5
-
6
- class TestWriteExt < Test::Unit::TestCase
7
- def setup
8
- @workbook = WriteXLSX.new(StringIO.new)
9
- @worksheet = @workbook.add_worksheet('')
10
- end
11
-
12
- def test_write_ext
13
- @worksheet.__send__('write_ext')
14
- result = @worksheet.instance_variable_get(:@writer).string
15
- expected = '<ext xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" uri="http://schemas.microsoft.com/office/mac/excel/2008/main"><mx:PLV Mode="1" OnePage="0" WScale="0"/></ext>'
16
- assert_equal(expected, result)
17
- end
18
- end
@@ -1,18 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- require 'helper'
3
- require 'write_xlsx'
4
- require 'stringio'
5
-
6
- class TestWriteExtLst < Test::Unit::TestCase
7
- def setup
8
- @workbook = WriteXLSX.new(StringIO.new)
9
- @worksheet = @workbook.add_worksheet('')
10
- end
11
-
12
- def test_write_ext_lst
13
- @worksheet.__send__('write_ext_lst')
14
- result = @worksheet.instance_variable_get(:@writer).string
15
- expected = '<extLst><ext xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" uri="http://schemas.microsoft.com/office/mac/excel/2008/main"><mx:PLV Mode="1" OnePage="0" WScale="0"/></ext></extLst>'
16
- assert_equal(expected, result)
17
- end
18
- end
@@ -1,19 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- require 'helper'
3
- require 'write_xlsx/workbook'
4
- require 'write_xlsx/worksheet'
5
- require 'stringio'
6
-
7
- class TestWriteMxPlv < Test::Unit::TestCase
8
- def setup
9
- @workbook = WriteXLSX.new(StringIO.new)
10
- @worksheet = @workbook.add_worksheet('')
11
- end
12
-
13
- def test_write_mx_plv
14
- @worksheet.__send__('write_mx_plv')
15
- result = @worksheet.instance_variable_get(:@writer).string
16
- expected = '<mx:PLV Mode="1" OnePage="0" WScale="0"/>'
17
- assert_equal(expected, result)
18
- end
19
- end