write_xlsx 0.51.0 → 0.54.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. data/.gitignore +39 -0
  2. data/Gemfile +4 -14
  3. data/LICENSE.txt +3 -1
  4. data/README.rdoc +5 -0
  5. data/Rakefile +4 -71
  6. data/examples/chart_radar.rb +127 -0
  7. data/examples/chart_secondary_axis.rb +1 -1
  8. data/lib/write_xlsx/chart/area.rb +7 -18
  9. data/lib/write_xlsx/chart/bar.rb +20 -23
  10. data/lib/write_xlsx/chart/column.rb +7 -20
  11. data/lib/write_xlsx/chart/radar.rb +94 -0
  12. data/lib/write_xlsx/chart/stock.rb +6 -0
  13. data/lib/write_xlsx/chart.rb +317 -116
  14. data/lib/write_xlsx/package/xml_writer_simple.rb +2 -2
  15. data/lib/write_xlsx/version.rb +5 -0
  16. data/test/chart/test_write_a_latin.rb +22 -0
  17. data/test/chart/test_write_auto.rb +1 -1
  18. data/test/chart/test_write_ax_id.rb +1 -1
  19. data/test/chart/test_write_ax_pos.rb +1 -1
  20. data/test/chart/test_write_cross_ax.rb +1 -1
  21. data/test/chart/test_write_crosses.rb +1 -1
  22. data/test/chart/test_write_d_lbls.rb +18 -18
  23. data/test/chart/test_write_idx.rb +1 -1
  24. data/test/chart/test_write_label_align.rb +1 -1
  25. data/test/chart/test_write_label_offset.rb +1 -1
  26. data/test/chart/test_write_lang.rb +1 -1
  27. data/test/chart/test_write_layout.rb +1 -1
  28. data/test/chart/test_write_legend.rb +1 -1
  29. data/test/chart/test_write_legend_pos.rb +1 -1
  30. data/test/chart/test_write_major_gridlines.rb +2 -2
  31. data/test/chart/test_write_marker.rb +1 -1
  32. data/test/chart/test_write_marker_size.rb +1 -1
  33. data/test/chart/test_write_marker_value.rb +1 -1
  34. data/test/chart/test_write_num_cache.rb +1 -1
  35. data/test/chart/test_write_number_format.rb +40 -2
  36. data/test/chart/test_write_order.rb +1 -1
  37. data/test/chart/test_write_orientation.rb +1 -1
  38. data/test/chart/test_write_page_margins.rb +1 -1
  39. data/test/chart/test_write_page_setup.rb +1 -1
  40. data/test/chart/test_write_plot_vis_only.rb +1 -1
  41. data/test/chart/test_write_pt_count.rb +1 -1
  42. data/test/chart/test_write_style.rb +1 -1
  43. data/test/chart/test_write_symbol.rb +1 -1
  44. data/test/chart/test_write_tick_lbl_pos.rb +1 -1
  45. data/test/drawing/test_write_a_graphic_frame_locks.rb +1 -1
  46. data/test/drawing/test_write_c_chart.rb +1 -1
  47. data/test/drawing/test_write_c_nv_graphic_frame_pr.rb +2 -2
  48. data/test/drawing/test_write_c_nv_pr.rb +1 -1
  49. data/test/drawing/test_write_ext.rb +1 -1
  50. data/test/drawing/test_write_pos.rb +1 -1
  51. data/test/drawing/test_write_xfrm_extension.rb +1 -1
  52. data/test/drawing/test_write_xfrm_offset.rb +1 -1
  53. data/test/helper.rb +1 -1
  54. data/test/package/content_types/test_write_default.rb +1 -1
  55. data/test/package/content_types/test_write_override.rb +1 -1
  56. data/test/package/table/test_write_auto_filter.rb +1 -1
  57. data/test/package/table/test_write_table_column.rb +1 -1
  58. data/test/package/table/test_write_table_style_info.rb +1 -1
  59. data/test/package/vml/test_write_fill.rb +1 -1
  60. data/test/package/vml/test_write_idmap.rb +1 -1
  61. data/test/package/vml/test_write_move_with_cells.rb +1 -1
  62. data/test/package/vml/test_write_path.rb +2 -2
  63. data/test/package/vml/test_write_shadow.rb +1 -1
  64. data/test/package/vml/test_write_shapelayout.rb +1 -1
  65. data/test/package/vml/test_write_shapetype.rb +1 -1
  66. data/test/package/vml/test_write_size_with_cells.rb +1 -1
  67. data/test/package/vml/test_write_stroke.rb +1 -1
  68. data/test/perl_output/chart_radar.xlsx +0 -0
  69. data/test/perl_output/chart_secondary_axis.xlsx +0 -0
  70. data/test/regression/test_chart_axis22.rb +45 -0
  71. data/test/regression/test_chart_axis23.rb +46 -0
  72. data/test/regression/test_chart_axis24.rb +46 -0
  73. data/test/regression/test_chart_font01.rb +54 -0
  74. data/test/regression/test_chart_font02.rb +56 -0
  75. data/test/regression/test_chart_font03.rb +59 -0
  76. data/test/regression/test_chart_font04.rb +57 -0
  77. data/test/regression/test_chart_font05.rb +54 -0
  78. data/test/regression/test_chart_font06.rb +84 -0
  79. data/test/regression/test_chart_radar01.rb +39 -0
  80. data/test/regression/test_chart_radar02.rb +43 -0
  81. data/test/regression/test_chart_radar03.rb +43 -0
  82. data/test/regression/test_escapes04.rb +30 -0
  83. data/test/regression/test_escapes05.rb +31 -0
  84. data/test/regression/test_rich_string01.rb +1 -1
  85. data/test/regression/test_rich_string02.rb +1 -1
  86. data/test/regression/test_rich_string03.rb +1 -1
  87. data/test/regression/test_rich_string04.rb +1 -1
  88. data/test/regression/test_rich_string05.rb +1 -1
  89. data/test/regression/test_rich_string06.rb +1 -1
  90. data/test/regression/test_rich_string07.rb +1 -1
  91. data/test/regression/test_rich_string08.rb +1 -1
  92. data/test/regression/test_rich_string09.rb +1 -1
  93. data/test/regression/test_rich_string10.rb +1 -1
  94. data/test/regression/test_rich_string11.rb +1 -1
  95. data/test/regression/test_shape_connect01.rb +1 -1
  96. data/test/regression/test_shape_connect02.rb +1 -1
  97. data/test/regression/test_shape_connect03.rb +1 -1
  98. data/test/regression/test_shape_connect04.rb +1 -1
  99. data/test/regression/xlsx_files/chart_axis22.xlsx +0 -0
  100. data/test/regression/xlsx_files/chart_axis23.xlsx +0 -0
  101. data/test/regression/xlsx_files/chart_axis24.xlsx +0 -0
  102. data/test/regression/xlsx_files/chart_font01.xlsx +0 -0
  103. data/test/regression/xlsx_files/chart_font02.xlsx +0 -0
  104. data/test/regression/xlsx_files/chart_font03.xlsx +0 -0
  105. data/test/regression/xlsx_files/chart_font04.xlsx +0 -0
  106. data/test/regression/xlsx_files/chart_font05.xlsx +0 -0
  107. data/test/regression/xlsx_files/chart_font06.xlsx +0 -0
  108. data/test/regression/xlsx_files/chart_radar01.xlsx +0 -0
  109. data/test/regression/xlsx_files/chart_radar02.xlsx +0 -0
  110. data/test/regression/xlsx_files/chart_radar03.xlsx +0 -0
  111. data/test/regression/xlsx_files/escapes04.xlsx +0 -0
  112. data/test/regression/xlsx_files/escapes05.xlsx +0 -0
  113. data/test/test_example_match.rb +119 -1
  114. data/test/test_xml_writer_simple.rb +4 -4
  115. data/test/worksheet/test_write_autofilter.rb +21 -21
  116. data/test/worksheet/test_write_brk.rb +1 -1
  117. data/test/worksheet/test_write_col_breaks.rb +2 -2
  118. data/test/worksheet/test_write_col_info.rb +6 -6
  119. data/test/worksheet/test_write_custom_filter.rb +1 -1
  120. data/test/worksheet/test_write_custom_filters.rb +2 -2
  121. data/test/worksheet/test_write_dimension.rb +9 -9
  122. data/test/worksheet/test_write_ext.rb +1 -1
  123. data/test/worksheet/test_write_ext_lst.rb +1 -1
  124. data/test/worksheet/test_write_filter.rb +1 -1
  125. data/test/worksheet/test_write_filter_column.rb +1 -1
  126. data/test/worksheet/test_write_filters.rb +3 -3
  127. data/test/worksheet/test_write_hyperlink.rb +4 -4
  128. data/test/worksheet/test_write_hyperlinks.rb +2 -2
  129. data/test/worksheet/test_write_legacy_drawing.rb +1 -1
  130. data/test/worksheet/test_write_merge_cell.rb +1 -1
  131. data/test/worksheet/test_write_mx_plv.rb +1 -1
  132. data/test/worksheet/test_write_page_margins.rb +11 -11
  133. data/test/worksheet/test_write_page_set_up_pr.rb +1 -1
  134. data/test/worksheet/test_write_page_setup.rb +4 -4
  135. data/test/worksheet/test_write_pane.rb +14 -14
  136. data/test/worksheet/test_write_phonetic_pr.rb +1 -1
  137. data/test/worksheet/test_write_print_options.rb +5 -5
  138. data/test/worksheet/test_write_row_breaks.rb +2 -2
  139. data/test/worksheet/test_write_row_element.rb +1 -1
  140. data/test/worksheet/test_write_selection.rb +1 -1
  141. data/test/worksheet/test_write_sheet_calc_pr.rb +1 -1
  142. data/test/worksheet/test_write_sheet_data.rb +1 -1
  143. data/test/worksheet/test_write_sheet_format_pr.rb +1 -1
  144. data/test/worksheet/test_write_sheet_pr.rb +3 -3
  145. data/test/worksheet/test_write_sheet_protection.rb +18 -18
  146. data/test/worksheet/test_write_sheet_view.rb +6 -6
  147. data/test/worksheet/test_write_sheet_view1.rb +6 -6
  148. data/test/worksheet/test_write_sheet_view2.rb +5 -5
  149. data/test/worksheet/test_write_sheet_view3.rb +8 -8
  150. data/test/worksheet/test_write_sheet_view4.rb +8 -8
  151. data/test/worksheet/test_write_sheet_view5.rb +7 -7
  152. data/test/worksheet/test_write_sheet_view6.rb +4 -4
  153. data/test/worksheet/test_write_sheet_view7.rb +6 -6
  154. data/test/worksheet/test_write_sheet_view8.rb +4 -4
  155. data/test/worksheet/test_write_sheet_view9.rb +4 -4
  156. data/test/worksheet/test_write_tab_color.rb +1 -1
  157. data/write_xlsx.gemspec +18 -935
  158. metadata +881 -32
  159. data/VERSION +0 -1
  160. data/test/chart/test_write_num_fmt.rb +0 -16
@@ -14,7 +14,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
14
14
  worksheet.autofilter('A1:D51')
15
15
  worksheet.__send__('write_auto_filter')
16
16
  result = worksheet.instance_variable_get(:@writer).string
17
- expected = '<autoFilter ref="A1:D51" />'
17
+ expected = '<autoFilter ref="A1:D51"/>'
18
18
  assert_equal(expected, result)
19
19
  end
20
20
 
@@ -26,7 +26,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
26
26
  worksheet.filter_column('A', filter)
27
27
  worksheet.__send__('write_auto_filter')
28
28
  result = worksheet.instance_variable_get(:@writer).string
29
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><filters><filter val="East" /></filters></filterColumn></autoFilter>'
29
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><filters><filter val="East"/></filters></filterColumn></autoFilter>'
30
30
  assert_equal(expected, result)
31
31
  end
32
32
 
@@ -38,7 +38,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
38
38
  worksheet.filter_column('A', filter)
39
39
  worksheet.__send__('write_auto_filter')
40
40
  result = worksheet.instance_variable_get(:@writer).string
41
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><filters><filter val="East" /><filter val="North" /></filters></filterColumn></autoFilter>'
41
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><filters><filter val="East"/><filter val="North"/></filters></filterColumn></autoFilter>'
42
42
  assert_equal(expected, result)
43
43
  end
44
44
 
@@ -50,7 +50,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
50
50
  worksheet.filter_column('A', filter)
51
51
  worksheet.__send__('write_auto_filter')
52
52
  result = worksheet.instance_variable_get(:@writer).string
53
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><customFilters and="1"><customFilter val="East" /><customFilter val="North" /></customFilters></filterColumn></autoFilter>'
53
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><customFilters and="1"><customFilter val="East"/><customFilter val="North"/></customFilters></filterColumn></autoFilter>'
54
54
  assert_equal(expected, result)
55
55
  end
56
56
 
@@ -62,7 +62,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
62
62
  worksheet.filter_column('A', filter)
63
63
  worksheet.__send__('write_auto_filter')
64
64
  result = worksheet.instance_variable_get(:@writer).string
65
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><customFilters><customFilter operator="notEqual" val="East" /></customFilters></filterColumn></autoFilter>'
65
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><customFilters><customFilter operator="notEqual" val="East"/></customFilters></filterColumn></autoFilter>'
66
66
  assert_equal(expected, result)
67
67
  end
68
68
 
@@ -74,7 +74,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
74
74
  worksheet.filter_column('A', filter)
75
75
  worksheet.__send__('write_auto_filter')
76
76
  result = worksheet.instance_variable_get(:@writer).string
77
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><customFilters><customFilter val="S*" /></customFilters></filterColumn></autoFilter>'
77
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><customFilters><customFilter val="S*"/></customFilters></filterColumn></autoFilter>'
78
78
  assert_equal(expected, result)
79
79
  end
80
80
 
@@ -86,7 +86,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
86
86
  worksheet.filter_column('A', filter)
87
87
  worksheet.__send__('write_auto_filter')
88
88
  result = worksheet.instance_variable_get(:@writer).string
89
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><customFilters><customFilter operator="notEqual" val="S*" /></customFilters></filterColumn></autoFilter>'
89
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><customFilters><customFilter operator="notEqual" val="S*"/></customFilters></filterColumn></autoFilter>'
90
90
  assert_equal(expected, result)
91
91
  end
92
92
 
@@ -98,7 +98,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
98
98
  worksheet.filter_column('A', filter)
99
99
  worksheet.__send__('write_auto_filter')
100
100
  result = worksheet.instance_variable_get(:@writer).string
101
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><customFilters><customFilter val="*h" /></customFilters></filterColumn></autoFilter>'
101
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><customFilters><customFilter val="*h"/></customFilters></filterColumn></autoFilter>'
102
102
  assert_equal(expected, result)
103
103
  end
104
104
 
@@ -110,7 +110,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
110
110
  worksheet.filter_column('A', filter)
111
111
  worksheet.__send__('write_auto_filter')
112
112
  result = worksheet.instance_variable_get(:@writer).string
113
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><customFilters><customFilter operator="notEqual" val="*h" /></customFilters></filterColumn></autoFilter>'
113
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><customFilters><customFilter operator="notEqual" val="*h"/></customFilters></filterColumn></autoFilter>'
114
114
  assert_equal(expected, result)
115
115
  end
116
116
 
@@ -122,7 +122,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
122
122
  worksheet.filter_column('A', filter)
123
123
  worksheet.__send__('write_auto_filter')
124
124
  result = worksheet.instance_variable_get(:@writer).string
125
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><customFilters><customFilter val="*o*" /></customFilters></filterColumn></autoFilter>'
125
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><customFilters><customFilter val="*o*"/></customFilters></filterColumn></autoFilter>'
126
126
  assert_equal(expected, result)
127
127
  end
128
128
 
@@ -134,7 +134,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
134
134
  worksheet.filter_column('A', filter)
135
135
  worksheet.__send__('write_auto_filter')
136
136
  result = worksheet.instance_variable_get(:@writer).string
137
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><customFilters><customFilter operator="notEqual" val="*r*" /></customFilters></filterColumn></autoFilter>'
137
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><customFilters><customFilter operator="notEqual" val="*r*"/></customFilters></filterColumn></autoFilter>'
138
138
  assert_equal(expected, result)
139
139
  end
140
140
 
@@ -146,7 +146,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
146
146
  worksheet.filter_column('C', filter)
147
147
  worksheet.__send__('write_auto_filter')
148
148
  result = worksheet.instance_variable_get(:@writer).string
149
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="2"><filters><filter val="1000" /></filters></filterColumn></autoFilter>'
149
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="2"><filters><filter val="1000"/></filters></filterColumn></autoFilter>'
150
150
  assert_equal(expected, result)
151
151
  end
152
152
 
@@ -158,7 +158,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
158
158
  worksheet.filter_column('C', filter)
159
159
  worksheet.__send__('write_auto_filter')
160
160
  result = worksheet.instance_variable_get(:@writer).string
161
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="2"><customFilters><customFilter operator="notEqual" val="2000" /></customFilters></filterColumn></autoFilter>'
161
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="2"><customFilters><customFilter operator="notEqual" val="2000"/></customFilters></filterColumn></autoFilter>'
162
162
  assert_equal(expected, result)
163
163
  end
164
164
 
@@ -170,7 +170,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
170
170
  worksheet.filter_column('C', filter)
171
171
  worksheet.__send__('write_auto_filter')
172
172
  result = worksheet.instance_variable_get(:@writer).string
173
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="2"><customFilters><customFilter operator="greaterThan" val="3000" /></customFilters></filterColumn></autoFilter>'
173
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="2"><customFilters><customFilter operator="greaterThan" val="3000"/></customFilters></filterColumn></autoFilter>'
174
174
  assert_equal(expected, result)
175
175
  end
176
176
 
@@ -182,7 +182,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
182
182
  worksheet.filter_column('C', filter)
183
183
  worksheet.__send__('write_auto_filter')
184
184
  result = worksheet.instance_variable_get(:@writer).string
185
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="2"><customFilters><customFilter operator="greaterThanOrEqual" val="4000" /></customFilters></filterColumn></autoFilter>'
185
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="2"><customFilters><customFilter operator="greaterThanOrEqual" val="4000"/></customFilters></filterColumn></autoFilter>'
186
186
  assert_equal(expected, result)
187
187
  end
188
188
 
@@ -194,7 +194,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
194
194
  worksheet.filter_column('C', filter)
195
195
  worksheet.__send__('write_auto_filter')
196
196
  result = worksheet.instance_variable_get(:@writer).string
197
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="2"><customFilters><customFilter operator="lessThan" val="5000" /></customFilters></filterColumn></autoFilter>'
197
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="2"><customFilters><customFilter operator="lessThan" val="5000"/></customFilters></filterColumn></autoFilter>'
198
198
  assert_equal(expected, result)
199
199
  end
200
200
 
@@ -206,7 +206,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
206
206
  worksheet.filter_column('C', filter)
207
207
  worksheet.__send__('write_auto_filter')
208
208
  result = worksheet.instance_variable_get(:@writer).string
209
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="2"><customFilters><customFilter operator="lessThanOrEqual" val="6000" /></customFilters></filterColumn></autoFilter>'
209
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="2"><customFilters><customFilter operator="lessThanOrEqual" val="6000"/></customFilters></filterColumn></autoFilter>'
210
210
  assert_equal(expected, result)
211
211
  end
212
212
 
@@ -218,7 +218,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
218
218
  worksheet.filter_column('C', filter)
219
219
  worksheet.__send__('write_auto_filter')
220
220
  result = worksheet.instance_variable_get(:@writer).string
221
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="2"><customFilters and="1"><customFilter operator="greaterThanOrEqual" val="1000" /><customFilter operator="lessThanOrEqual" val="2000" /></customFilters></filterColumn></autoFilter>'
221
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="2"><customFilters and="1"><customFilter operator="greaterThanOrEqual" val="1000"/><customFilter operator="lessThanOrEqual" val="2000"/></customFilters></filterColumn></autoFilter>'
222
222
  assert_equal(expected, result)
223
223
  end
224
224
 
@@ -230,7 +230,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
230
230
  worksheet.filter_column_list('A', matches)
231
231
  worksheet.__send__('write_auto_filter')
232
232
  result = worksheet.instance_variable_get(:@writer).string
233
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><filters><filter val="East" /></filters></filterColumn></autoFilter>'
233
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><filters><filter val="East"/></filters></filterColumn></autoFilter>'
234
234
  assert_equal(expected, result)
235
235
  end
236
236
 
@@ -242,7 +242,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
242
242
  worksheet.filter_column_list('A', matches)
243
243
  worksheet.__send__('write_auto_filter')
244
244
  result = worksheet.instance_variable_get(:@writer).string
245
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><filters><filter val="East" /><filter val="North" /></filters></filterColumn></autoFilter>'
245
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="0"><filters><filter val="East"/><filter val="North"/></filters></filterColumn></autoFilter>'
246
246
  assert_equal(expected, result)
247
247
  end
248
248
 
@@ -254,7 +254,7 @@ class TestWriteAutofilter < Test::Unit::TestCase
254
254
  worksheet.filter_column_list('D', matches)
255
255
  worksheet.__send__('write_auto_filter')
256
256
  result = worksheet.instance_variable_get(:@writer).string
257
- expected = '<autoFilter ref="A1:D51"><filterColumn colId="3"><filters><filter val="February" /><filter val="January" /><filter val="July" /><filter val="June" /></filters></filterColumn></autoFilter>'
257
+ expected = '<autoFilter ref="A1:D51"><filterColumn colId="3"><filters><filter val="February"/><filter val="January"/><filter val="July"/><filter val="June"/></filters></filterColumn></autoFilter>'
258
258
  assert_equal(expected, result)
259
259
  end
260
260
  end
@@ -12,7 +12,7 @@ class TestWriteBrk < Test::Unit::TestCase
12
12
  def test_write_brk
13
13
  @worksheet.__send__('write_brk', 1, 16383)
14
14
  result = @worksheet.instance_variable_get(:@writer).string
15
- expected = '<brk id="1" max="16383" man="1" />'
15
+ expected = '<brk id="1" max="16383" man="1"/>'
16
16
  assert_equal(expected, result)
17
17
  end
18
18
  end
@@ -13,7 +13,7 @@ class TestWriteColBreaks < Test::Unit::TestCase
13
13
  @worksheet.instance_variable_get(:@print_style).vbreaks = [1]
14
14
  @worksheet.__send__('write_col_breaks')
15
15
  result = @worksheet.instance_variable_get(:@writer).string
16
- expected = '<colBreaks count="1" manualBreakCount="1"><brk id="1" max="1048575" man="1" /></colBreaks>'
16
+ expected = '<colBreaks count="1" manualBreakCount="1"><brk id="1" max="1048575" man="1"/></colBreaks>'
17
17
  assert_equal(expected, result)
18
18
  end
19
19
 
@@ -21,7 +21,7 @@ class TestWriteColBreaks < Test::Unit::TestCase
21
21
  @worksheet.instance_variable_get(:@print_style).vbreaks = [8, 3, 1, 0]
22
22
  @worksheet.__send__('write_col_breaks')
23
23
  result = @worksheet.instance_variable_get(:@writer).string
24
- expected = '<colBreaks count="3" manualBreakCount="3"><brk id="1" max="1048575" man="1" /><brk id="3" max="1048575" man="1" /><brk id="8" max="1048575" man="1" /></colBreaks>'
24
+ expected = '<colBreaks count="3" manualBreakCount="3"><brk id="1" max="1048575" man="1"/><brk id="3" max="1048575" man="1"/><brk id="8" max="1048575" man="1"/></colBreaks>'
25
25
  assert_equal(expected, result)
26
26
  end
27
27
  end
@@ -19,7 +19,7 @@ class TestWriteColInfo < Test::Unit::TestCase
19
19
  collapsed = 0
20
20
  @worksheet.__send__('write_col_info', min, max, width, format, hidden)
21
21
  result = @worksheet.instance_variable_get(:@writer).string
22
- expected = '<col min="2" max="4" width="5.7109375" customWidth="1" />'
22
+ expected = '<col min="2" max="4" width="5.7109375" customWidth="1"/>'
23
23
  assert_equal(expected, result)
24
24
  end
25
25
 
@@ -33,7 +33,7 @@ class TestWriteColInfo < Test::Unit::TestCase
33
33
  collapsed = 0
34
34
  @worksheet.__send__('write_col_info', min, max, width, format, hidden)
35
35
  result = @worksheet.instance_variable_get(:@writer).string
36
- expected = '<col min="6" max="6" width="8.7109375" hidden="1" customWidth="1" />'
36
+ expected = '<col min="6" max="6" width="8.7109375" hidden="1" customWidth="1"/>'
37
37
  assert_equal(expected, result)
38
38
  end
39
39
 
@@ -47,7 +47,7 @@ class TestWriteColInfo < Test::Unit::TestCase
47
47
  collapsed = 0
48
48
  @worksheet.__send__('write_col_info', min, max, width, format, hidden)
49
49
  result = @worksheet.instance_variable_get(:@writer).string
50
- expected = '<col min="8" max="8" width="9.140625" style="1" />'
50
+ expected = '<col min="8" max="8" width="9.140625" style="1"/>'
51
51
  assert_equal(expected, result)
52
52
  end
53
53
 
@@ -61,7 +61,7 @@ class TestWriteColInfo < Test::Unit::TestCase
61
61
  collapsed = 0
62
62
  @worksheet.__send__('write_col_info', min, max, width, format, hidden)
63
63
  result = @worksheet.instance_variable_get(:@writer).string
64
- expected = '<col min="9" max="9" width="9.140625" style="1" />'
64
+ expected = '<col min="9" max="9" width="9.140625" style="1"/>'
65
65
  assert_equal(expected, result)
66
66
  end
67
67
 
@@ -75,7 +75,7 @@ class TestWriteColInfo < Test::Unit::TestCase
75
75
  collapsed = 0
76
76
  @worksheet.__send__('write_col_info', min, max, width, format, hidden)
77
77
  result = @worksheet.instance_variable_get(:@writer).string
78
- expected = '<col min="10" max="10" width="2.7109375" customWidth="1" />'
78
+ expected = '<col min="10" max="10" width="2.7109375" customWidth="1"/>'
79
79
  assert_equal(expected, result)
80
80
  end
81
81
 
@@ -89,7 +89,7 @@ class TestWriteColInfo < Test::Unit::TestCase
89
89
  collapsed = 0
90
90
  @worksheet.__send__('write_col_info', min, max, width, format, hidden)
91
91
  result = @worksheet.instance_variable_get(:@writer).string
92
- expected = '<col min="12" max="12" width="0" hidden="1" customWidth="1" />'
92
+ expected = '<col min="12" max="12" width="0" hidden="1" customWidth="1"/>'
93
93
  assert_equal(expected, result)
94
94
  end
95
95
  end
@@ -12,7 +12,7 @@ class TestWriteCustomFilter < Test::Unit::TestCase
12
12
  def test_write_custom_filter
13
13
  @worksheet.__send__('write_custom_filter', 4, 3000)
14
14
  result = @worksheet.instance_variable_get(:@writer).string
15
- expected = '<customFilter operator="greaterThan" val="3000" />'
15
+ expected = '<customFilter operator="greaterThan" val="3000"/>'
16
16
  assert_equal(expected, result)
17
17
  end
18
18
  end
@@ -12,14 +12,14 @@ class TestWriteCustomFilters < Test::Unit::TestCase
12
12
  def test_write_custom_filters_4_4000
13
13
  @worksheet.__send__('write_custom_filters', 4, 4000)
14
14
  result = @worksheet.instance_variable_get(:@writer).string
15
- expected = '<customFilters><customFilter operator="greaterThan" val="4000" /></customFilters>'
15
+ expected = '<customFilters><customFilter operator="greaterThan" val="4000"/></customFilters>'
16
16
  assert_equal(expected, result)
17
17
  end
18
18
 
19
19
  def test_write_custom_filters_4_3000_0_1_8000
20
20
  @worksheet.__send__('write_custom_filters', 4, 3000, 0, 1, 8000)
21
21
  result = @worksheet.instance_variable_get(:@writer).string
22
- expected = '<customFilters and="1"><customFilter operator="greaterThan" val="3000" /><customFilter operator="lessThan" val="8000" /></customFilters>'
22
+ expected = '<customFilters and="1"><customFilter operator="greaterThan" val="3000"/><customFilter operator="lessThan" val="8000"/></customFilters>'
23
23
  assert_equal(expected, result)
24
24
  end
25
25
  end
@@ -12,7 +12,7 @@ class TestWriteDimension < Test::Unit::TestCase
12
12
  def test_write_dimension_with_no_dimension_set
13
13
  @worksheet.__send__('write_dimension')
14
14
  result = @worksheet.instance_variable_get(:@writer).string
15
- expected = '<dimension ref="A1" />'
15
+ expected = '<dimension ref="A1"/>'
16
16
  assert_equal(expected, result)
17
17
  end
18
18
 
@@ -21,7 +21,7 @@ class TestWriteDimension < Test::Unit::TestCase
21
21
  @worksheet.write(cell, 'some string')
22
22
  @worksheet.__send__('write_dimension')
23
23
  result = @worksheet.instance_variable_get(:@writer).string
24
- expected = %Q!<dimension ref="#{cell}" />!
24
+ expected = %Q!<dimension ref="#{cell}"/>!
25
25
  assert_equal(expected, result)
26
26
  end
27
27
 
@@ -30,7 +30,7 @@ class TestWriteDimension < Test::Unit::TestCase
30
30
  @worksheet.write(cell, 'some string')
31
31
  @worksheet.__send__('write_dimension')
32
32
  result = @worksheet.instance_variable_get(:@writer).string
33
- expected = %Q!<dimension ref="#{cell}" />!
33
+ expected = %Q!<dimension ref="#{cell}"/>!
34
34
  assert_equal(expected, result)
35
35
  end
36
36
 
@@ -39,7 +39,7 @@ class TestWriteDimension < Test::Unit::TestCase
39
39
  @worksheet.write(cell, 'some string')
40
40
  @worksheet.__send__('write_dimension')
41
41
  result = @worksheet.instance_variable_get(:@writer).string
42
- expected = %Q!<dimension ref="#{cell}" />!
42
+ expected = %Q!<dimension ref="#{cell}"/>!
43
43
  assert_equal(expected, result)
44
44
  end
45
45
 
@@ -48,7 +48,7 @@ class TestWriteDimension < Test::Unit::TestCase
48
48
  @worksheet.write(cell, 'some string')
49
49
  @worksheet.__send__('write_dimension')
50
50
  result = @worksheet.instance_variable_get(:@writer).string
51
- expected = %Q!<dimension ref="#{cell}" />!
51
+ expected = %Q!<dimension ref="#{cell}"/>!
52
52
  assert_equal(expected, result)
53
53
  end
54
54
 
@@ -58,7 +58,7 @@ class TestWriteDimension < Test::Unit::TestCase
58
58
  @worksheet.write('B2', 'some string')
59
59
  @worksheet.__send__('write_dimension')
60
60
  result = @worksheet.instance_variable_get(:@writer).string
61
- expected = %Q!<dimension ref="#{cell}" />!
61
+ expected = %Q!<dimension ref="#{cell}"/>!
62
62
  assert_equal(expected, result)
63
63
  end
64
64
 
@@ -68,7 +68,7 @@ class TestWriteDimension < Test::Unit::TestCase
68
68
  @worksheet.write('A1', 'some string')
69
69
  @worksheet.__send__('write_dimension')
70
70
  result = @worksheet.instance_variable_get(:@writer).string
71
- expected = %Q!<dimension ref="#{cell}" />!
71
+ expected = %Q!<dimension ref="#{cell}"/>!
72
72
  assert_equal(expected, result)
73
73
  end
74
74
 
@@ -78,7 +78,7 @@ class TestWriteDimension < Test::Unit::TestCase
78
78
  @worksheet.write('H11', 'some string')
79
79
  @worksheet.__send__('write_dimension')
80
80
  result = @worksheet.instance_variable_get(:@writer).string
81
- expected = %Q!<dimension ref="#{cell}" />!
81
+ expected = %Q!<dimension ref="#{cell}"/>!
82
82
  assert_equal(expected, result)
83
83
  end
84
84
 
@@ -88,7 +88,7 @@ class TestWriteDimension < Test::Unit::TestCase
88
88
  @worksheet.write('XFD1048576', 'some string')
89
89
  @worksheet.__send__('write_dimension')
90
90
  result = @worksheet.instance_variable_get(:@writer).string
91
- expected = %Q!<dimension ref="#{cell}" />!
91
+ expected = %Q!<dimension ref="#{cell}"/>!
92
92
  assert_equal(expected, result)
93
93
  end
94
94
  end
@@ -12,7 +12,7 @@ class TestWriteExt < Test::Unit::TestCase
12
12
  def test_write_ext
13
13
  @worksheet.__send__('write_ext')
14
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>'
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
16
  assert_equal(expected, result)
17
17
  end
18
18
  end
@@ -12,7 +12,7 @@ class TestWriteExtLst < Test::Unit::TestCase
12
12
  def test_write_ext_lst
13
13
  @worksheet.__send__('write_ext_lst')
14
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>'
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
16
  assert_equal(expected, result)
17
17
  end
18
18
  end
@@ -12,7 +12,7 @@ class TestWriteFilter < Test::Unit::TestCase
12
12
  def test_write_filter
13
13
  @worksheet.__send__('write_filter', 'East')
14
14
  result = @worksheet.instance_variable_get(:@writer).string
15
- expected = '<filter val="East" />'
15
+ expected = '<filter val="East"/>'
16
16
  assert_equal(expected, result)
17
17
  end
18
18
  end
@@ -12,7 +12,7 @@ class TestWriteFilterColumn < Test::Unit::TestCase
12
12
  def test_write_filter_column
13
13
  @worksheet.__send__('write_filter_column', 0, 1, *['East'])
14
14
  result = @worksheet.instance_variable_get(:@writer).string
15
- expected = '<filterColumn colId="0"><filters><filter val="East" /></filters></filterColumn>'
15
+ expected = '<filterColumn colId="0"><filters><filter val="East"/></filters></filterColumn>'
16
16
  assert_equal(expected, result)
17
17
  end
18
18
  end
@@ -12,21 +12,21 @@ class TestWriteFilters < Test::Unit::TestCase
12
12
  def test_write_filters_East
13
13
  @worksheet.__send__('write_filters', 'East')
14
14
  result = @worksheet.instance_variable_get(:@writer).string
15
- expected = '<filters><filter val="East" /></filters>'
15
+ expected = '<filters><filter val="East"/></filters>'
16
16
  assert_equal(expected, result)
17
17
  end
18
18
 
19
19
  def test_write_filters_East_South
20
20
  @worksheet.__send__('write_filters', 'East', 'South')
21
21
  result = @worksheet.instance_variable_get(:@writer).string
22
- expected = '<filters><filter val="East" /><filter val="South" /></filters>'
22
+ expected = '<filters><filter val="East"/><filter val="South"/></filters>'
23
23
  assert_equal(expected, result)
24
24
  end
25
25
 
26
26
  def test_write_filters_blanks
27
27
  @worksheet.__send__('write_filters', 'blanks')
28
28
  result = @worksheet.instance_variable_get(:@writer).string
29
- expected = '<filters blank="1" />'
29
+ expected = '<filters blank="1"/>'
30
30
  assert_equal(expected, result)
31
31
  end
32
32
  end
@@ -12,28 +12,28 @@ class TestWriteHyperlink < Test::Unit::TestCase
12
12
  def test_write_hyperlink_external
13
13
  @worksheet.__send__('write_hyperlink_external', 0, 0, 1)
14
14
  result = @worksheet.instance_variable_get(:@writer).string
15
- expected = '<hyperlink ref="A1" r:id="rId1" />'
15
+ expected = '<hyperlink ref="A1" r:id="rId1"/>'
16
16
  assert_equal(expected, result)
17
17
  end
18
18
 
19
19
  def test_write_hyperlink_internal_sheet2
20
20
  @worksheet.__send__('write_hyperlink_internal', 0, 0, 'Sheet2!A1', 'Sheet2!A1')
21
21
  result = @worksheet.instance_variable_get(:@writer).string
22
- expected = '<hyperlink ref="A1" location="Sheet2!A1" display="Sheet2!A1" />'
22
+ expected = '<hyperlink ref="A1" location="Sheet2!A1" display="Sheet2!A1"/>'
23
23
  assert_equal(expected, result)
24
24
  end
25
25
 
26
26
  def test_write_hyperlink_internal_quated_sheet
27
27
  @worksheet.__send__('write_hyperlink_internal', 4, 0, "'Data Sheet'!D5", "'Data Sheet'!D5")
28
28
  result = @worksheet.instance_variable_get(:@writer).string
29
- expected = %q{<hyperlink ref="A5" location="'Data Sheet'!D5" display="'Data Sheet'!D5" />}
29
+ expected = %q{<hyperlink ref="A5" location="'Data Sheet'!D5" display="'Data Sheet'!D5"/>}
30
30
  assert_equal(expected, result)
31
31
  end
32
32
 
33
33
  def test_write_hyperlink_internal_tooltip
34
34
  @worksheet.__send__('write_hyperlink_internal', 17, 0, 'Sheet2!A1', 'Sheet2!A1', 'Screen Tip 1')
35
35
  result = @worksheet.instance_variable_get(:@writer).string
36
- expected = '<hyperlink ref="A18" location="Sheet2!A1" tooltip="Screen Tip 1" display="Sheet2!A1" />'
36
+ expected = '<hyperlink ref="A18" location="Sheet2!A1" tooltip="Screen Tip 1" display="Sheet2!A1"/>'
37
37
  assert_equal(expected, result)
38
38
  end
39
39
  end
@@ -13,7 +13,7 @@ class TestWriteHyperlinks < Test::Unit::TestCase
13
13
  @worksheet.instance_variable_set(:@hlink_refs, [[ 1, 0, 0, 1 ]])
14
14
  @worksheet.__send__('write_hyperlinks')
15
15
  result = @worksheet.instance_variable_get(:@writer).string
16
- expected = '<hyperlinks><hyperlink ref="A1" r:id="rId1" /></hyperlinks>'
16
+ expected = '<hyperlinks><hyperlink ref="A1" r:id="rId1"/></hyperlinks>'
17
17
  assert_equal(expected, result)
18
18
  end
19
19
 
@@ -21,7 +21,7 @@ class TestWriteHyperlinks < Test::Unit::TestCase
21
21
  @worksheet.instance_variable_set(:@hlink_refs, [[ 2, 0, 0, 'Sheet2!A1', 'Sheet2!A1' ]])
22
22
  @worksheet.__send__('write_hyperlinks')
23
23
  result = @worksheet.instance_variable_get(:@writer).string
24
- expected = '<hyperlinks><hyperlink ref="A1" location="Sheet2!A1" display="Sheet2!A1" /></hyperlinks>'
24
+ expected = '<hyperlinks><hyperlink ref="A1" location="Sheet2!A1" display="Sheet2!A1"/></hyperlinks>'
25
25
  assert_equal(expected, result)
26
26
  end
27
27
  end
@@ -13,7 +13,7 @@ class TestWriteLegacyDrawing < Test::Unit::TestCase
13
13
  @worksheet.write_comment('A1', 'comment')
14
14
  @worksheet.__send__('write_legacy_drawing')
15
15
  result = @worksheet.instance_variable_get(:@writer).string
16
- expected = '<legacyDrawing r:id="rId1" />'
16
+ expected = '<legacyDrawing r:id="rId1"/>'
17
17
  assert_equal(expected, result)
18
18
  end
19
19
  end
@@ -12,7 +12,7 @@ class TestWriteMergeCell < Test::Unit::TestCase
12
12
  def test_write_merge_cell
13
13
  @worksheet.__send__('write_merge_cell', [ 2, 1, 2, 2 ])
14
14
  result = @worksheet.instance_variable_get(:@writer).string
15
- expected = '<mergeCell ref="B3:C3" />'
15
+ expected = '<mergeCell ref="B3:C3"/>'
16
16
  assert_equal(expected, result)
17
17
  end
18
18
  end
@@ -13,7 +13,7 @@ class TestWriteMxPlv < Test::Unit::TestCase
13
13
  def test_write_mx_plv
14
14
  @worksheet.__send__('write_mx_plv')
15
15
  result = @worksheet.instance_variable_get(:@writer).string
16
- expected = '<mx:PLV Mode="1" OnePage="0" WScale="0" />'
16
+ expected = '<mx:PLV Mode="1" OnePage="0" WScale="0"/>'
17
17
  assert_equal(expected, result)
18
18
  end
19
19
  end
@@ -12,7 +12,7 @@ class TestWorksheetWritePageMargins < Test::Unit::TestCase
12
12
  def test_write_page_margins
13
13
  @worksheet.__send__('write_page_margins')
14
14
  result = @worksheet.instance_variable_get(:@writer).string
15
- expected = '<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3" />'
15
+ expected = '<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/>'
16
16
  assert_equal(expected, result)
17
17
  end
18
18
 
@@ -20,7 +20,7 @@ class TestWorksheetWritePageMargins < Test::Unit::TestCase
20
20
  @worksheet.margins = 0.5
21
21
  @worksheet.__send__('write_page_margins')
22
22
  result = @worksheet.instance_variable_get(:@writer).string
23
- expected = '<pageMargins left="0.5" right="0.5" top="0.5" bottom="0.5" header="0.3" footer="0.3" />'
23
+ expected = '<pageMargins left="0.5" right="0.5" top="0.5" bottom="0.5" header="0.3" footer="0.3"/>'
24
24
  assert_equal(expected, result)
25
25
  end
26
26
 
@@ -28,7 +28,7 @@ class TestWorksheetWritePageMargins < Test::Unit::TestCase
28
28
  @worksheet.margins_left_right = 0.5
29
29
  @worksheet.__send__('write_page_margins')
30
30
  result = @worksheet.instance_variable_get(:@writer).string
31
- expected = '<pageMargins left="0.5" right="0.5" top="0.75" bottom="0.75" header="0.3" footer="0.3" />'
31
+ expected = '<pageMargins left="0.5" right="0.5" top="0.75" bottom="0.75" header="0.3" footer="0.3"/>'
32
32
  assert_equal(expected, result)
33
33
  end
34
34
 
@@ -36,7 +36,7 @@ class TestWorksheetWritePageMargins < Test::Unit::TestCase
36
36
  @worksheet.margins_top_bottom = 0.5
37
37
  @worksheet.__send__('write_page_margins')
38
38
  result = @worksheet.instance_variable_get(:@writer).string
39
- expected = '<pageMargins left="0.7" right="0.7" top="0.5" bottom="0.5" header="0.3" footer="0.3" />'
39
+ expected = '<pageMargins left="0.7" right="0.7" top="0.5" bottom="0.5" header="0.3" footer="0.3"/>'
40
40
  assert_equal(expected, result)
41
41
  end
42
42
 
@@ -44,7 +44,7 @@ class TestWorksheetWritePageMargins < Test::Unit::TestCase
44
44
  @worksheet.margin_left = 0.5
45
45
  @worksheet.__send__('write_page_margins')
46
46
  result = @worksheet.instance_variable_get(:@writer).string
47
- expected = '<pageMargins left="0.5" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3" />'
47
+ expected = '<pageMargins left="0.5" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/>'
48
48
  assert_equal(expected, result)
49
49
  end
50
50
 
@@ -52,7 +52,7 @@ class TestWorksheetWritePageMargins < Test::Unit::TestCase
52
52
  @worksheet.margin_right = 0.5
53
53
  @worksheet.__send__('write_page_margins')
54
54
  result = @worksheet.instance_variable_get(:@writer).string
55
- expected = '<pageMargins left="0.7" right="0.5" top="0.75" bottom="0.75" header="0.3" footer="0.3" />'
55
+ expected = '<pageMargins left="0.7" right="0.5" top="0.75" bottom="0.75" header="0.3" footer="0.3"/>'
56
56
  assert_equal(expected, result)
57
57
  end
58
58
 
@@ -60,7 +60,7 @@ class TestWorksheetWritePageMargins < Test::Unit::TestCase
60
60
  @worksheet.margin_top = 0.5
61
61
  @worksheet.__send__('write_page_margins')
62
62
  result = @worksheet.instance_variable_get(:@writer).string
63
- expected = '<pageMargins left="0.7" right="0.7" top="0.5" bottom="0.75" header="0.3" footer="0.3" />'
63
+ expected = '<pageMargins left="0.7" right="0.7" top="0.5" bottom="0.75" header="0.3" footer="0.3"/>'
64
64
  assert_equal(expected, result)
65
65
  end
66
66
 
@@ -68,7 +68,7 @@ class TestWorksheetWritePageMargins < Test::Unit::TestCase
68
68
  @worksheet.margin_bottom = 0.5
69
69
  @worksheet.__send__('write_page_margins')
70
70
  result = @worksheet.instance_variable_get(:@writer).string
71
- expected = '<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.5" header="0.3" footer="0.3" />'
71
+ expected = '<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.5" header="0.3" footer="0.3"/>'
72
72
  assert_equal(expected, result)
73
73
  end
74
74
 
@@ -76,7 +76,7 @@ class TestWorksheetWritePageMargins < Test::Unit::TestCase
76
76
  @worksheet.set_header('', 0.5)
77
77
  @worksheet.__send__('write_page_margins')
78
78
  result = @worksheet.instance_variable_get(:@writer).string
79
- expected = '<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.5" footer="0.3" />'
79
+ expected = '<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.5" footer="0.3"/>'
80
80
  assert_equal(expected, result)
81
81
  end
82
82
 
@@ -84,7 +84,7 @@ class TestWorksheetWritePageMargins < Test::Unit::TestCase
84
84
  @worksheet.set_footer('', 0.5)
85
85
  @worksheet.__send__('write_page_margins')
86
86
  result = @worksheet.instance_variable_get(:@writer).string
87
- expected = '<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.5" />'
87
+ expected = '<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.5"/>'
88
88
  assert_equal(expected, result)
89
89
  end
90
90
 
@@ -92,7 +92,7 @@ class TestWorksheetWritePageMargins < Test::Unit::TestCase
92
92
  @worksheet.margins = " 0.5\n"
93
93
  @worksheet.__send__('write_page_margins')
94
94
  result = @worksheet.instance_variable_get(:@writer).string
95
- expected = '<pageMargins left="0.5" right="0.5" top="0.5" bottom="0.5" header="0.3" footer="0.3" />'
95
+ expected = '<pageMargins left="0.5" right="0.5" top="0.5" bottom="0.5" header="0.3" footer="0.3"/>'
96
96
  assert_equal(expected, result)
97
97
  end
98
98
  end