write_xlsx 0.85.5 → 0.85.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (602) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -0
  3. data/Changes +3 -0
  4. data/lib/write_xlsx/compatibility.rb +1 -1
  5. data/lib/write_xlsx/package/xml_writer_simple.rb +1 -1
  6. data/lib/write_xlsx/version.rb +1 -1
  7. data/lib/write_xlsx/worksheet.rb +3 -2
  8. data/test/helper.rb +20 -0
  9. data/test/regression/disabled_test_vml04.rb +2 -2
  10. data/test/regression/test_array_formula01.rb +6 -6
  11. data/test/regression/test_array_formula02.rb +6 -6
  12. data/test/regression/test_autofilter00.rb +3 -3
  13. data/test/regression/test_autofilter01.rb +3 -3
  14. data/test/regression/test_autofilter02.rb +3 -3
  15. data/test/regression/test_autofilter03.rb +3 -3
  16. data/test/regression/test_autofilter04.rb +3 -3
  17. data/test/regression/test_autofilter05.rb +3 -3
  18. data/test/regression/test_autofilter06.rb +3 -3
  19. data/test/regression/test_autofilter07.rb +3 -3
  20. data/test/regression/test_button01.rb +3 -3
  21. data/test/regression/test_button02.rb +3 -3
  22. data/test/regression/test_button03.rb +3 -3
  23. data/test/regression/test_button04.rb +3 -3
  24. data/test/regression/test_button05.rb +3 -3
  25. data/test/regression/test_button06.rb +3 -3
  26. data/test/regression/test_button07.rb +3 -3
  27. data/test/regression/test_button08.rb +3 -3
  28. data/test/regression/test_button13.rb +2 -6
  29. data/test/regression/test_button14.rb +3 -3
  30. data/test/regression/test_chart_area01.rb +3 -3
  31. data/test/regression/test_chart_area02.rb +3 -3
  32. data/test/regression/test_chart_area03.rb +3 -3
  33. data/test/regression/test_chart_area04.rb +3 -3
  34. data/test/regression/test_chart_axis01.rb +6 -7
  35. data/test/regression/test_chart_axis02.rb +6 -7
  36. data/test/regression/test_chart_axis03.rb +9 -10
  37. data/test/regression/test_chart_axis04.rb +8 -9
  38. data/test/regression/test_chart_axis05.rb +8 -9
  39. data/test/regression/test_chart_axis06.rb +8 -9
  40. data/test/regression/test_chart_axis07.rb +8 -9
  41. data/test/regression/test_chart_axis08.rb +8 -9
  42. data/test/regression/test_chart_axis09.rb +8 -9
  43. data/test/regression/test_chart_axis10.rb +8 -9
  44. data/test/regression/test_chart_axis11.rb +8 -9
  45. data/test/regression/test_chart_axis12.rb +8 -9
  46. data/test/regression/test_chart_axis13.rb +8 -9
  47. data/test/regression/test_chart_axis14.rb +9 -10
  48. data/test/regression/test_chart_axis15.rb +9 -10
  49. data/test/regression/test_chart_axis16.rb +9 -10
  50. data/test/regression/test_chart_axis17.rb +6 -7
  51. data/test/regression/test_chart_axis18.rb +6 -7
  52. data/test/regression/test_chart_axis19.rb +6 -7
  53. data/test/regression/test_chart_axis20.rb +6 -7
  54. data/test/regression/test_chart_axis21.rb +6 -7
  55. data/test/regression/test_chart_axis22.rb +6 -7
  56. data/test/regression/test_chart_axis23.rb +6 -7
  57. data/test/regression/test_chart_axis24.rb +6 -7
  58. data/test/regression/test_chart_axis25.rb +6 -7
  59. data/test/regression/test_chart_axis26.rb +6 -7
  60. data/test/regression/test_chart_axis27.rb +6 -7
  61. data/test/regression/test_chart_axis28.rb +6 -7
  62. data/test/regression/test_chart_axis29.rb +6 -7
  63. data/test/regression/test_chart_axis30.rb +3 -7
  64. data/test/regression/test_chart_axis31.rb +3 -7
  65. data/test/regression/test_chart_axis32.rb +3 -7
  66. data/test/regression/test_chart_axis33.rb +6 -7
  67. data/test/regression/test_chart_axis34.rb +6 -7
  68. data/test/regression/test_chart_axis35.rb +6 -7
  69. data/test/regression/test_chart_axis36.rb +6 -7
  70. data/test/regression/test_chart_axis37.rb +6 -7
  71. data/test/regression/test_chart_axis38.rb +5 -10
  72. data/test/regression/test_chart_axis39.rb +6 -7
  73. data/test/regression/test_chart_bar01.rb +3 -3
  74. data/test/regression/test_chart_bar02.rb +11 -12
  75. data/test/regression/test_chart_bar03.rb +12 -13
  76. data/test/regression/test_chart_bar04.rb +12 -13
  77. data/test/regression/test_chart_bar05.rb +3 -7
  78. data/test/regression/test_chart_bar06.rb +9 -10
  79. data/test/regression/test_chart_bar07.rb +13 -14
  80. data/test/regression/test_chart_bar08.rb +3 -7
  81. data/test/regression/test_chart_bar09.rb +6 -7
  82. data/test/regression/test_chart_bar10.rb +6 -7
  83. data/test/regression/test_chart_bar11.rb +23 -25
  84. data/test/regression/test_chart_bar12.rb +3 -8
  85. data/test/regression/test_chart_bar13.rb +3 -8
  86. data/test/regression/test_chart_bar14.rb +10 -12
  87. data/test/regression/test_chart_bar15.rb +9 -11
  88. data/test/regression/test_chart_bar16.rb +8 -10
  89. data/test/regression/test_chart_bar17.rb +8 -10
  90. data/test/regression/test_chart_bar18.rb +17 -19
  91. data/test/regression/test_chart_bar19.rb +8 -10
  92. data/test/regression/test_chart_bar20.rb +8 -10
  93. data/test/regression/test_chart_bar21.rb +3 -7
  94. data/test/regression/test_chart_bar22.rb +8 -10
  95. data/test/regression/test_chart_bar23.rb +8 -10
  96. data/test/regression/test_chart_bar24.rb +9 -10
  97. data/test/regression/test_chart_blank01.rb +3 -3
  98. data/test/regression/test_chart_blank02.rb +3 -3
  99. data/test/regression/test_chart_blank03.rb +3 -3
  100. data/test/regression/test_chart_blank04.rb +3 -3
  101. data/test/regression/test_chart_blank05.rb +6 -8
  102. data/test/regression/test_chart_blank06.rb +3 -3
  103. data/test/regression/test_chart_chartarea01.rb +3 -3
  104. data/test/regression/test_chart_chartarea02.rb +3 -3
  105. data/test/regression/test_chart_chartarea03.rb +3 -3
  106. data/test/regression/test_chart_chartarea04.rb +6 -8
  107. data/test/regression/test_chart_chartarea05.rb +3 -3
  108. data/test/regression/test_chart_clustered01.rb +3 -3
  109. data/test/regression/test_chart_column01.rb +3 -7
  110. data/test/regression/test_chart_column02.rb +8 -9
  111. data/test/regression/test_chart_column03.rb +8 -9
  112. data/test/regression/test_chart_column04.rb +9 -10
  113. data/test/regression/test_chart_column05.rb +3 -3
  114. data/test/regression/test_chart_column06.rb +8 -9
  115. data/test/regression/test_chart_column07.rb +3 -7
  116. data/test/regression/test_chart_column08.rb +3 -7
  117. data/test/regression/test_chart_column09.rb +3 -7
  118. data/test/regression/test_chart_column10.rb +3 -7
  119. data/test/regression/test_chart_column11.rb +3 -7
  120. data/test/regression/test_chart_column12.rb +2 -10
  121. data/test/regression/test_chart_combined01.rb +3 -3
  122. data/test/regression/test_chart_combined02.rb +3 -3
  123. data/test/regression/test_chart_combined03.rb +3 -3
  124. data/test/regression/test_chart_combined04.rb +3 -3
  125. data/test/regression/test_chart_combined05.rb +3 -3
  126. data/test/regression/test_chart_combined06.rb +3 -3
  127. data/test/regression/test_chart_combined07.rb +3 -3
  128. data/test/regression/test_chart_combined08.rb +3 -3
  129. data/test/regression/test_chart_crossing01.rb +8 -9
  130. data/test/regression/test_chart_crossing02.rb +8 -9
  131. data/test/regression/test_chart_crossing03.rb +8 -9
  132. data/test/regression/test_chart_crossing04.rb +8 -9
  133. data/test/regression/test_chart_data_labels01.rb +3 -3
  134. data/test/regression/test_chart_data_labels02.rb +3 -3
  135. data/test/regression/test_chart_data_labels03.rb +3 -3
  136. data/test/regression/test_chart_data_labels04.rb +3 -3
  137. data/test/regression/test_chart_data_labels05.rb +3 -3
  138. data/test/regression/test_chart_data_labels06.rb +3 -3
  139. data/test/regression/test_chart_data_labels07.rb +3 -3
  140. data/test/regression/test_chart_data_labels08.rb +3 -3
  141. data/test/regression/test_chart_data_labels09.rb +3 -3
  142. data/test/regression/test_chart_data_labels10.rb +3 -3
  143. data/test/regression/test_chart_data_labels11.rb +3 -3
  144. data/test/regression/test_chart_data_labels12.rb +3 -3
  145. data/test/regression/test_chart_data_labels13.rb +3 -3
  146. data/test/regression/test_chart_data_labels14.rb +3 -3
  147. data/test/regression/test_chart_data_labels15.rb +3 -3
  148. data/test/regression/test_chart_data_labels16.rb +3 -3
  149. data/test/regression/test_chart_data_labels17.rb +3 -3
  150. data/test/regression/test_chart_data_labels18.rb +3 -3
  151. data/test/regression/test_chart_data_labels19.rb +3 -3
  152. data/test/regression/test_chart_data_labels20.rb +3 -3
  153. data/test/regression/test_chart_data_labels21.rb +3 -3
  154. data/test/regression/test_chart_data_labels22.rb +3 -3
  155. data/test/regression/test_chart_data_labels23.rb +3 -3
  156. data/test/regression/test_chart_data_labels24.rb +3 -3
  157. data/test/regression/test_chart_date01.rb +2 -6
  158. data/test/regression/test_chart_date02.rb +3 -3
  159. data/test/regression/test_chart_date03.rb +3 -3
  160. data/test/regression/test_chart_date04.rb +3 -3
  161. data/test/regression/test_chart_date05.rb +3 -3
  162. data/test/regression/test_chart_display_units01.rb +3 -3
  163. data/test/regression/test_chart_display_units02.rb +3 -3
  164. data/test/regression/test_chart_display_units03.rb +3 -3
  165. data/test/regression/test_chart_display_units04.rb +3 -3
  166. data/test/regression/test_chart_display_units05.rb +3 -3
  167. data/test/regression/test_chart_display_units06.rb +3 -3
  168. data/test/regression/test_chart_display_units07.rb +3 -3
  169. data/test/regression/test_chart_display_units08.rb +3 -3
  170. data/test/regression/test_chart_display_units09.rb +3 -3
  171. data/test/regression/test_chart_display_units10.rb +3 -3
  172. data/test/regression/test_chart_display_units11.rb +3 -3
  173. data/test/regression/test_chart_display_units12.rb +3 -3
  174. data/test/regression/test_chart_doughnut01.rb +3 -7
  175. data/test/regression/test_chart_doughnut02.rb +3 -7
  176. data/test/regression/test_chart_doughnut03.rb +3 -7
  177. data/test/regression/test_chart_doughnut04.rb +3 -7
  178. data/test/regression/test_chart_doughnut05.rb +3 -7
  179. data/test/regression/test_chart_doughnut06.rb +3 -7
  180. data/test/regression/test_chart_drop_lines01.rb +3 -3
  181. data/test/regression/test_chart_drop_lines02.rb +3 -3
  182. data/test/regression/test_chart_drop_lines03.rb +3 -3
  183. data/test/regression/test_chart_drop_lines04.rb +3 -3
  184. data/test/regression/test_chart_errorbars01.rb +3 -4
  185. data/test/regression/test_chart_errorbars02.rb +3 -4
  186. data/test/regression/test_chart_errorbars03.rb +3 -4
  187. data/test/regression/test_chart_errorbars04.rb +3 -4
  188. data/test/regression/test_chart_errorbars05.rb +3 -4
  189. data/test/regression/test_chart_errorbars06.rb +3 -4
  190. data/test/regression/test_chart_errorbars07.rb +6 -7
  191. data/test/regression/test_chart_errorbars08.rb +3 -7
  192. data/test/regression/test_chart_errorbars09.rb +3 -7
  193. data/test/regression/test_chart_errorbars10.rb +3 -7
  194. data/test/regression/test_chart_font01.rb +3 -3
  195. data/test/regression/test_chart_font02.rb +3 -3
  196. data/test/regression/test_chart_font03.rb +3 -3
  197. data/test/regression/test_chart_font04.rb +3 -3
  198. data/test/regression/test_chart_font05.rb +3 -3
  199. data/test/regression/test_chart_font06.rb +3 -3
  200. data/test/regression/test_chart_font07.rb +3 -3
  201. data/test/regression/test_chart_font08.rb +3 -3
  202. data/test/regression/test_chart_font09.rb +2 -6
  203. data/test/regression/test_chart_format01.rb +3 -3
  204. data/test/regression/test_chart_format02.rb +3 -3
  205. data/test/regression/test_chart_format03.rb +3 -3
  206. data/test/regression/test_chart_format04.rb +3 -3
  207. data/test/regression/test_chart_format05.rb +3 -3
  208. data/test/regression/test_chart_format06.rb +8 -10
  209. data/test/regression/test_chart_format07.rb +8 -10
  210. data/test/regression/test_chart_format08.rb +8 -10
  211. data/test/regression/test_chart_format09.rb +8 -10
  212. data/test/regression/test_chart_format10.rb +8 -10
  213. data/test/regression/test_chart_format11.rb +8 -10
  214. data/test/regression/test_chart_format12.rb +8 -10
  215. data/test/regression/test_chart_format13.rb +8 -10
  216. data/test/regression/test_chart_format14.rb +8 -10
  217. data/test/regression/test_chart_format15.rb +8 -10
  218. data/test/regression/test_chart_format16.rb +8 -10
  219. data/test/regression/test_chart_format17.rb +3 -4
  220. data/test/regression/test_chart_format18.rb +3 -4
  221. data/test/regression/test_chart_format19.rb +3 -4
  222. data/test/regression/test_chart_format20.rb +3 -4
  223. data/test/regression/test_chart_gap01.rb +3 -3
  224. data/test/regression/test_chart_gap02.rb +3 -3
  225. data/test/regression/test_chart_gap03.rb +3 -3
  226. data/test/regression/test_chart_gap04.rb +3 -3
  227. data/test/regression/test_chart_gap05.rb +3 -3
  228. data/test/regression/test_chart_gradient01.rb +3 -6
  229. data/test/regression/test_chart_gradient02.rb +3 -6
  230. data/test/regression/test_chart_gradient03.rb +3 -6
  231. data/test/regression/test_chart_gradient04.rb +3 -6
  232. data/test/regression/test_chart_gradient05.rb +3 -6
  233. data/test/regression/test_chart_gradient06.rb +3 -6
  234. data/test/regression/test_chart_gradient07.rb +3 -6
  235. data/test/regression/test_chart_gradient08.rb +3 -6
  236. data/test/regression/test_chart_gradient09.rb +3 -6
  237. data/test/regression/test_chart_gradient10.rb +3 -6
  238. data/test/regression/test_chart_gradient11.rb +3 -6
  239. data/test/regression/test_chart_gradient12.rb +3 -6
  240. data/test/regression/test_chart_gradient13.rb +3 -6
  241. data/test/regression/test_chart_gridlines01.rb +3 -6
  242. data/test/regression/test_chart_gridlines02.rb +3 -6
  243. data/test/regression/test_chart_gridlines03.rb +6 -8
  244. data/test/regression/test_chart_gridlines04.rb +3 -6
  245. data/test/regression/test_chart_gridlines05.rb +3 -6
  246. data/test/regression/test_chart_gridlines06.rb +3 -6
  247. data/test/regression/test_chart_gridlines07.rb +6 -8
  248. data/test/regression/test_chart_gridlines08.rb +3 -6
  249. data/test/regression/test_chart_gridlines09.rb +3 -6
  250. data/test/regression/test_chart_layout01.rb +3 -3
  251. data/test/regression/test_chart_layout02.rb +3 -3
  252. data/test/regression/test_chart_layout03.rb +3 -3
  253. data/test/regression/test_chart_layout04.rb +3 -3
  254. data/test/regression/test_chart_layout05.rb +3 -3
  255. data/test/regression/test_chart_layout06.rb +3 -3
  256. data/test/regression/test_chart_layout07.rb +3 -3
  257. data/test/regression/test_chart_layout08.rb +3 -3
  258. data/test/regression/test_chart_legend01.rb +3 -8
  259. data/test/regression/test_chart_legend02.rb +3 -8
  260. data/test/regression/test_chart_line01.rb +3 -3
  261. data/test/regression/test_chart_line02.rb +9 -10
  262. data/test/regression/test_chart_line03.rb +3 -3
  263. data/test/regression/test_chart_line04.rb +3 -3
  264. data/test/regression/test_chart_name01.rb +3 -6
  265. data/test/regression/test_chart_name02.rb +3 -6
  266. data/test/regression/test_chart_name03.rb +3 -6
  267. data/test/regression/test_chart_order01.rb +3 -6
  268. data/test/regression/test_chart_order02.rb +3 -6
  269. data/test/regression/test_chart_order03.rb +10 -12
  270. data/test/regression/test_chart_pie01.rb +3 -3
  271. data/test/regression/test_chart_pie02.rb +3 -3
  272. data/test/regression/test_chart_pie03.rb +3 -3
  273. data/test/regression/test_chart_pie04.rb +3 -3
  274. data/test/regression/test_chart_pie05.rb +3 -3
  275. data/test/regression/test_chart_points01.rb +3 -3
  276. data/test/regression/test_chart_points02.rb +3 -3
  277. data/test/regression/test_chart_points03.rb +3 -3
  278. data/test/regression/test_chart_points04.rb +3 -3
  279. data/test/regression/test_chart_points05.rb +3 -3
  280. data/test/regression/test_chart_points06.rb +3 -3
  281. data/test/regression/test_chart_radar01.rb +3 -3
  282. data/test/regression/test_chart_radar02.rb +3 -3
  283. data/test/regression/test_chart_radar03.rb +3 -3
  284. data/test/regression/test_chart_scatter01.rb +3 -3
  285. data/test/regression/test_chart_scatter02.rb +3 -3
  286. data/test/regression/test_chart_scatter03.rb +3 -3
  287. data/test/regression/test_chart_scatter04.rb +3 -3
  288. data/test/regression/test_chart_scatter05.rb +3 -3
  289. data/test/regression/test_chart_scatter06.rb +3 -3
  290. data/test/regression/test_chart_scatter07.rb +9 -10
  291. data/test/regression/test_chart_scatter08.rb +3 -3
  292. data/test/regression/test_chart_scatter09.rb +3 -3
  293. data/test/regression/test_chart_scatter10.rb +3 -3
  294. data/test/regression/test_chart_scatter11.rb +3 -3
  295. data/test/regression/test_chart_scatter12.rb +3 -3
  296. data/test/regression/test_chart_scatter13.rb +3 -3
  297. data/test/regression/test_chart_scatter14.rb +3 -3
  298. data/test/regression/test_chart_scatter15.rb +3 -3
  299. data/test/regression/test_chart_size01.rb +3 -3
  300. data/test/regression/test_chart_size02.rb +3 -3
  301. data/test/regression/test_chart_size03.rb +3 -3
  302. data/test/regression/test_chart_size04.rb +3 -3
  303. data/test/regression/test_chart_size05.rb +3 -3
  304. data/test/regression/test_chart_sparse01.rb +6 -9
  305. data/test/regression/test_chart_stock01.rb +6 -8
  306. data/test/regression/test_chart_stock02.rb +10 -12
  307. data/test/regression/test_chart_str01.rb +3 -8
  308. data/test/regression/test_chart_str02.rb +3 -8
  309. data/test/regression/test_chart_table01.rb +3 -6
  310. data/test/regression/test_chart_table02.rb +3 -6
  311. data/test/regression/test_chart_title01.rb +3 -8
  312. data/test/regression/test_chart_title02.rb +3 -8
  313. data/test/regression/test_chartsheet01.rb +3 -8
  314. data/test/regression/test_chartsheet02.rb +8 -10
  315. data/test/regression/test_chartsheet03.rb +8 -10
  316. data/test/regression/test_chartsheet04.rb +8 -10
  317. data/test/regression/test_chartsheet05.rb +8 -10
  318. data/test/regression/test_chartsheet06.rb +7 -13
  319. data/test/regression/test_chartsheet07.rb +16 -18
  320. data/test/regression/test_chartsheet08.rb +16 -18
  321. data/test/regression/test_chartsheet09.rb +8 -10
  322. data/test/regression/test_comment01.rb +3 -3
  323. data/test/regression/test_comment02.rb +3 -3
  324. data/test/regression/test_comment03.rb +6 -7
  325. data/test/regression/test_comment04.rb +6 -7
  326. data/test/regression/test_comment06.rb +6 -7
  327. data/test/regression/test_comment07.rb +6 -7
  328. data/test/regression/test_comment08.rb +6 -7
  329. data/test/regression/test_comment09.rb +6 -7
  330. data/test/regression/test_comment10.rb +6 -7
  331. data/test/regression/test_comment11.rb +6 -8
  332. data/test/regression/test_comment12.rb +3 -8
  333. data/test/regression/test_cond_format01.rb +6 -7
  334. data/test/regression/test_cond_format02.rb +6 -7
  335. data/test/regression/test_cond_format03.rb +6 -7
  336. data/test/regression/test_cond_format04.rb +6 -7
  337. data/test/regression/test_cond_format05.rb +6 -7
  338. data/test/regression/test_cond_format06.rb +6 -7
  339. data/test/regression/test_cond_format07.rb +6 -7
  340. data/test/regression/test_cond_format08.rb +6 -7
  341. data/test/regression/test_cond_format10.rb +6 -7
  342. data/test/regression/test_cond_format11.rb +6 -7
  343. data/test/regression/test_cond_format12.rb +6 -7
  344. data/test/regression/test_cond_format13.rb +6 -7
  345. data/test/regression/test_custom_colors01.rb +3 -3
  346. data/test/regression/test_data_validation01.rb +3 -3
  347. data/test/regression/test_data_validation02.rb +3 -3
  348. data/test/regression/test_data_validation03.rb +3 -3
  349. data/test/regression/test_data_validation04.rb +1 -5
  350. data/test/regression/test_data_validation05.rb +1 -5
  351. data/test/regression/test_date_1904_01.rb +3 -8
  352. data/test/regression/test_date_1904_02.rb +3 -8
  353. data/test/regression/test_date_examples01.rb +3 -3
  354. data/test/regression/test_default_format01.rb +2 -6
  355. data/test/regression/test_default_row01.rb +3 -3
  356. data/test/regression/test_default_row02.rb +3 -3
  357. data/test/regression/test_default_row03.rb +3 -3
  358. data/test/regression/test_default_row04.rb +3 -3
  359. data/test/regression/test_defined_name01.rb +10 -12
  360. data/test/regression/test_defined_name02.rb +10 -12
  361. data/test/regression/test_defined_name03.rb +10 -12
  362. data/test/regression/test_defined_name04.rb +2 -7
  363. data/test/regression/test_escapes01.rb +8 -10
  364. data/test/regression/test_escapes02.rb +8 -9
  365. data/test/regression/test_escapes03.rb +8 -9
  366. data/test/regression/test_escapes04.rb +8 -10
  367. data/test/regression/test_escapes05.rb +8 -10
  368. data/test/regression/test_escapes06.rb +3 -6
  369. data/test/regression/test_escapes07.rb +3 -6
  370. data/test/regression/test_escapes08.rb +3 -6
  371. data/test/regression/test_excel2003_style01.rb +3 -3
  372. data/test/regression/test_excel2003_style02.rb +3 -3
  373. data/test/regression/test_excel2003_style03.rb +3 -3
  374. data/test/regression/test_excel2003_style04.rb +3 -3
  375. data/test/regression/test_excel2003_style05.rb +3 -3
  376. data/test/regression/test_excel2003_style06.rb +3 -3
  377. data/test/regression/test_excel2003_style07.rb +3 -3
  378. data/test/regression/test_excel2003_style08.rb +3 -3
  379. data/test/regression/test_firstsheet01.rb +3 -8
  380. data/test/regression/test_fit_to_pages01.rb +12 -14
  381. data/test/regression/test_fit_to_pages02.rb +12 -14
  382. data/test/regression/test_fit_to_pages03.rb +12 -14
  383. data/test/regression/test_fit_to_pages04.rb +12 -14
  384. data/test/regression/test_fit_to_pages05.rb +12 -14
  385. data/test/regression/test_format01.rb +3 -3
  386. data/test/regression/test_format02.rb +3 -3
  387. data/test/regression/test_format03.rb +3 -3
  388. data/test/regression/test_format04.rb +3 -3
  389. data/test/regression/test_format05.rb +3 -3
  390. data/test/regression/test_format11.rb +3 -3
  391. data/test/regression/test_format12.rb +3 -3
  392. data/test/regression/test_formula_results01.rb +3 -3
  393. data/test/regression/test_gridlines01.rb +12 -14
  394. data/test/regression/test_header01.rb +3 -3
  395. data/test/regression/test_header02.rb +3 -3
  396. data/test/regression/test_header03.rb +3 -3
  397. data/test/regression/test_header_image01.rb +3 -3
  398. data/test/regression/test_header_image02.rb +3 -3
  399. data/test/regression/test_header_image03.rb +3 -3
  400. data/test/regression/test_header_image04.rb +3 -3
  401. data/test/regression/test_header_image05.rb +3 -3
  402. data/test/regression/test_header_image06.rb +3 -3
  403. data/test/regression/test_header_image07.rb +3 -3
  404. data/test/regression/test_header_image08.rb +3 -3
  405. data/test/regression/test_header_image09.rb +8 -12
  406. data/test/regression/test_header_image10.rb +3 -3
  407. data/test/regression/test_header_image11.rb +3 -3
  408. data/test/regression/test_header_image12.rb +3 -3
  409. data/test/regression/test_header_image13.rb +3 -3
  410. data/test/regression/test_header_image14.rb +3 -3
  411. data/test/regression/test_hide01.rb +3 -8
  412. data/test/regression/test_hyperlink01.rb +3 -3
  413. data/test/regression/test_hyperlink02.rb +3 -3
  414. data/test/regression/test_hyperlink03.rb +3 -3
  415. data/test/regression/test_hyperlink04.rb +3 -3
  416. data/test/regression/test_hyperlink05.rb +3 -3
  417. data/test/regression/test_hyperlink06.rb +3 -3
  418. data/test/regression/test_hyperlink07.rb +2 -6
  419. data/test/regression/test_hyperlink08.rb +3 -3
  420. data/test/regression/test_hyperlink09.rb +3 -3
  421. data/test/regression/test_hyperlink10.rb +3 -3
  422. data/test/regression/test_hyperlink11.rb +3 -3
  423. data/test/regression/test_hyperlink12.rb +3 -3
  424. data/test/regression/test_hyperlink13.rb +3 -3
  425. data/test/regression/test_hyperlink14.rb +3 -3
  426. data/test/regression/test_hyperlink15.rb +3 -3
  427. data/test/regression/test_hyperlink16.rb +3 -3
  428. data/test/regression/test_hyperlink17.rb +3 -3
  429. data/test/regression/test_hyperlink18.rb +3 -3
  430. data/test/regression/test_hyperlink20.rb +3 -3
  431. data/test/regression/test_hyperlink21.rb +3 -3
  432. data/test/regression/test_image01.rb +3 -3
  433. data/test/regression/test_image02.rb +3 -3
  434. data/test/regression/test_image03.rb +3 -3
  435. data/test/regression/test_image04.rb +3 -3
  436. data/test/regression/test_image05.rb +3 -3
  437. data/test/regression/test_image06.rb +3 -3
  438. data/test/regression/test_image07.rb +3 -3
  439. data/test/regression/test_image08.rb +3 -3
  440. data/test/regression/test_image09.rb +3 -3
  441. data/test/regression/test_image10.rb +3 -3
  442. data/test/regression/test_image11.rb +3 -3
  443. data/test/regression/test_image12.rb +3 -3
  444. data/test/regression/test_image13.rb +3 -3
  445. data/test/regression/test_image14.rb +3 -3
  446. data/test/regression/test_image15.rb +3 -3
  447. data/test/regression/test_image16.rb +3 -3
  448. data/test/regression/test_image17.rb +2 -6
  449. data/test/regression/test_image18.rb +3 -3
  450. data/test/regression/test_image19.rb +3 -3
  451. data/test/regression/test_image22.rb +3 -3
  452. data/test/regression/test_image23.rb +3 -3
  453. data/test/regression/test_image24.rb +3 -3
  454. data/test/regression/test_image25.rb +3 -3
  455. data/test/regression/test_image26.rb +3 -3
  456. data/test/regression/test_image27.rb +3 -3
  457. data/test/regression/test_landscape01.rb +3 -3
  458. data/test/regression/test_macro01.rb +3 -3
  459. data/test/regression/test_merge_cells01.rb +2 -6
  460. data/test/regression/test_merge_range01.rb +3 -6
  461. data/test/regression/test_merge_range02.rb +3 -6
  462. data/test/regression/test_merge_range03.rb +3 -6
  463. data/test/regression/test_merge_range04.rb +3 -6
  464. data/test/regression/test_merge_range05.rb +3 -6
  465. data/test/regression/test_outline01.rb +12 -14
  466. data/test/regression/test_outline02.rb +12 -14
  467. data/test/regression/test_outline03.rb +12 -14
  468. data/test/regression/test_outline04.rb +12 -14
  469. data/test/regression/test_outline05.rb +12 -14
  470. data/test/regression/test_outline06.rb +12 -14
  471. data/test/regression/test_page_breaks01.rb +12 -14
  472. data/test/regression/test_page_breaks02.rb +12 -14
  473. data/test/regression/test_page_breaks03.rb +12 -14
  474. data/test/regression/test_page_breaks04.rb +12 -14
  475. data/test/regression/test_page_breaks05.rb +12 -14
  476. data/test/regression/test_page_breaks06.rb +12 -14
  477. data/test/regression/test_page_view01.rb +12 -14
  478. data/test/regression/test_panes01.rb +3 -8
  479. data/test/regression/test_print_across01.rb +12 -14
  480. data/test/regression/test_print_area01.rb +12 -14
  481. data/test/regression/test_print_area02.rb +12 -14
  482. data/test/regression/test_print_area03.rb +12 -14
  483. data/test/regression/test_print_area04.rb +12 -14
  484. data/test/regression/test_print_area05.rb +12 -14
  485. data/test/regression/test_print_area06.rb +12 -14
  486. data/test/regression/test_print_area07.rb +12 -14
  487. data/test/regression/test_print_options01.rb +12 -14
  488. data/test/regression/test_print_options02.rb +12 -14
  489. data/test/regression/test_print_options03.rb +12 -14
  490. data/test/regression/test_print_options04.rb +12 -14
  491. data/test/regression/test_print_options05.rb +12 -14
  492. data/test/regression/test_print_options06.rb +12 -14
  493. data/test/regression/test_print_options07.rb +3 -5
  494. data/test/regression/test_print_scale01.rb +12 -14
  495. data/test/regression/test_print_scale02.rb +12 -14
  496. data/test/regression/test_properties01.rb +6 -7
  497. data/test/regression/test_protect01.rb +3 -3
  498. data/test/regression/test_protect02.rb +3 -3
  499. data/test/regression/test_protect03.rb +3 -3
  500. data/test/regression/test_quote_name01.rb +3 -3
  501. data/test/regression/test_quote_name03.rb +3 -3
  502. data/test/regression/test_quote_name04.rb +3 -3
  503. data/test/regression/test_repeat01.rb +12 -14
  504. data/test/regression/test_repeat02.rb +12 -14
  505. data/test/regression/test_repeat03.rb +12 -14
  506. data/test/regression/test_repeat04.rb +12 -14
  507. data/test/regression/test_repeat05.rb +15 -17
  508. data/test/regression/test_rich_string01.rb +3 -3
  509. data/test/regression/test_rich_string02.rb +3 -3
  510. data/test/regression/test_rich_string03.rb +3 -3
  511. data/test/regression/test_rich_string04.rb +3 -3
  512. data/test/regression/test_rich_string05.rb +3 -3
  513. data/test/regression/test_rich_string06.rb +3 -3
  514. data/test/regression/test_rich_string07.rb +3 -3
  515. data/test/regression/test_rich_string08.rb +3 -3
  516. data/test/regression/test_rich_string09.rb +3 -3
  517. data/test/regression/test_rich_string10.rb +3 -3
  518. data/test/regression/test_rich_string11.rb +3 -3
  519. data/test/regression/test_rich_string12.rb +3 -3
  520. data/test/regression/test_row_col_format01.rb +3 -3
  521. data/test/regression/test_row_col_format02.rb +3 -3
  522. data/test/regression/test_row_col_format03.rb +3 -3
  523. data/test/regression/test_row_col_format04.rb +3 -3
  524. data/test/regression/test_row_col_format05.rb +3 -3
  525. data/test/regression/test_row_col_format06.rb +3 -3
  526. data/test/regression/test_row_col_format07.rb +3 -3
  527. data/test/regression/test_row_col_format08.rb +3 -3
  528. data/test/regression/test_row_col_format09.rb +3 -3
  529. data/test/regression/test_row_col_format10.rb +3 -3
  530. data/test/regression/test_row_col_format11.rb +3 -3
  531. data/test/regression/test_row_col_format12.rb +3 -3
  532. data/test/regression/test_row_col_format13.rb +3 -3
  533. data/test/regression/test_row_col_format14.rb +3 -3
  534. data/test/regression/test_selection01.rb +3 -3
  535. data/test/regression/test_selection02.rb +3 -3
  536. data/test/regression/test_set_column01.rb +3 -3
  537. data/test/regression/test_set_column02.rb +3 -3
  538. data/test/regression/test_set_column03.rb +2 -6
  539. data/test/regression/test_set_column04.rb +3 -3
  540. data/test/regression/test_set_column05.rb +3 -3
  541. data/test/regression/test_set_column06.rb +3 -3
  542. data/test/regression/test_set_column07.rb +3 -3
  543. data/test/regression/test_set_column08.rb +3 -3
  544. data/test/regression/test_set_column09.rb +3 -3
  545. data/test/regression/test_set_print_scale01.rb +3 -3
  546. data/test/regression/test_set_start_page01.rb +3 -3
  547. data/test/regression/test_set_start_page02.rb +3 -3
  548. data/test/regression/test_set_start_page03.rb +3 -3
  549. data/test/regression/test_shape01.rb +3 -3
  550. data/test/regression/test_shape02.rb +3 -3
  551. data/test/regression/test_shape03.rb +3 -3
  552. data/test/regression/test_shape04.rb +3 -3
  553. data/test/regression/test_shape_connect01.rb +3 -3
  554. data/test/regression/test_shape_connect02.rb +3 -3
  555. data/test/regression/test_shape_connect03.rb +3 -3
  556. data/test/regression/test_shape_connect04.rb +3 -3
  557. data/test/regression/test_shape_scale01.rb +12 -14
  558. data/test/regression/test_shape_stencil01.rb +3 -8
  559. data/test/regression/test_shared_strings01.rb +6 -8
  560. data/test/regression/test_shared_strings02.rb +6 -8
  561. data/test/regression/test_shared_strings_encoding.rb +0 -103
  562. data/test/regression/test_simple01.rb +3 -3
  563. data/test/regression/test_simple02.rb +3 -3
  564. data/test/regression/test_simple03.rb +3 -3
  565. data/test/regression/test_simple04.rb +3 -3
  566. data/test/regression/test_simple05.rb +3 -3
  567. data/test/regression/test_tab_color01.rb +2 -11
  568. data/test/regression/test_table01.rb +3 -3
  569. data/test/regression/test_table02.rb +3 -3
  570. data/test/regression/test_table03.rb +3 -3
  571. data/test/regression/test_table04.rb +3 -3
  572. data/test/regression/test_table05.rb +3 -3
  573. data/test/regression/test_table06.rb +3 -3
  574. data/test/regression/test_table07.rb +3 -3
  575. data/test/regression/test_table08.rb +3 -3
  576. data/test/regression/test_table09.rb +3 -3
  577. data/test/regression/test_table10.rb +3 -3
  578. data/test/regression/test_table11.rb +3 -3
  579. data/test/regression/test_table12.rb +3 -3
  580. data/test/regression/test_table13.rb +3 -3
  581. data/test/regression/test_table14.rb +3 -3
  582. data/test/regression/test_table15.rb +3 -3
  583. data/test/regression/test_table16.rb +3 -3
  584. data/test/regression/test_table17.rb +3 -3
  585. data/test/regression/test_tutorial01.rb +3 -3
  586. data/test/regression/test_tutorial02.rb +3 -3
  587. data/test/regression/test_tutorial03.rb +3 -3
  588. data/test/regression/test_urls_as_strings.rb +3 -3
  589. data/test/regression/test_utf8_01.rb +3 -3
  590. data/test/regression/test_utf8_03.rb +3 -3
  591. data/test/regression/test_utf8_04.rb +3 -3
  592. data/test/regression/test_utf8_05.rb +3 -3
  593. data/test/regression/test_utf8_06.rb +3 -3
  594. data/test/regression/test_utf8_07.rb +3 -3
  595. data/test/regression/test_utf8_08.rb +3 -3
  596. data/test/regression/test_utf8_09.rb +2 -6
  597. data/test/regression/test_utf8_10.rb +3 -3
  598. data/test/regression/test_vml01.rb +3 -3
  599. data/test/regression/test_vml02.rb +3 -3
  600. data/test/regression/test_vml03.rb +3 -3
  601. data/test/test_example_match.rb +199 -133
  602. metadata +3 -3
@@ -7,12 +7,12 @@ def setup
7
7
  end
8
8
 
9
9
  def teardown
10
- File.delete(@xlsx) if File.exist?(@xlsx)
10
+ @tempfile.close(true)
11
11
  end
12
12
 
13
13
  def test_chart_bar12
14
14
  @xlsx = 'chart_bar12.xlsx'
15
- workbook = WriteXLSX.new(@xlsx)
15
+ workbook = WriteXLSX.new(@io)
16
16
  worksheet = workbook.add_worksheet
17
17
  chart = workbook.add_chart(:type => 'bar')
18
18
 
@@ -33,11 +33,6 @@ def test_chart_bar12
33
33
  chart.add_series(:values => '=Sheet1!$C$1:$C$5')
34
34
 
35
35
  workbook.close
36
- compare_xlsx_for_regression(File.join(@regression_output, @xlsx),
37
- @xlsx,
38
- nil,
39
- nil
40
- )
36
+ compare_for_regression
41
37
  end
42
38
  end
43
-
@@ -7,12 +7,12 @@ def setup
7
7
  end
8
8
 
9
9
  def teardown
10
- File.delete(@xlsx) if File.exist?(@xlsx)
10
+ @tempfile.close(true)
11
11
  end
12
12
 
13
13
  def test_chart_bar13
14
14
  @xlsx = 'chart_bar13.xlsx'
15
- workbook = WriteXLSX.new(@xlsx)
15
+ workbook = WriteXLSX.new(@io)
16
16
  worksheet1 = workbook.add_worksheet
17
17
  chart1 = workbook.add_chart(:type => 'bar')
18
18
  worksheet2 = workbook.add_worksheet
@@ -43,11 +43,6 @@ def test_chart_bar13
43
43
  chart2.add_series(:values => '=Sheet1!$C$1:$C$5')
44
44
 
45
45
  workbook.close
46
- compare_xlsx_for_regression(File.join(@regression_output, @xlsx),
47
- @xlsx,
48
- nil,
49
- nil
50
- )
46
+ compare_for_regression
51
47
  end
52
48
  end
53
-
@@ -7,12 +7,12 @@ def setup
7
7
  end
8
8
 
9
9
  def teardown
10
- File.delete(@xlsx) if File.exist?(@xlsx)
10
+ @tempfile.close(true)
11
11
  end
12
12
 
13
13
  def test_chart_bar14
14
14
  @xlsx = 'chart_bar14.xlsx'
15
- workbook = WriteXLSX.new(@xlsx)
15
+ workbook = WriteXLSX.new(@io)
16
16
  worksheet1 = workbook.add_worksheet
17
17
  worksheet2 = workbook.add_worksheet
18
18
  worksheet3 = workbook.add_worksheet
@@ -49,15 +49,13 @@ def test_chart_bar14
49
49
  worksheet2.insert_chart('F25', chart2)
50
50
 
51
51
  workbook.close
52
- compare_xlsx_for_regression(File.join(@regression_output, @xlsx),
53
- @xlsx,
54
- nil,
55
- {
56
- 'xl/charts/chart1.xml' => ['<c:pageMargins'],
57
- 'xl/charts/chart2.xml' => ['<c:pageMargins'],
58
- 'xl/charts/chart3.xml' => ['<c:pageMargins']
59
- }
60
- )
52
+ compare_for_regression(
53
+ nil,
54
+ {
55
+ 'xl/charts/chart1.xml' => ['<c:pageMargins'],
56
+ 'xl/charts/chart2.xml' => ['<c:pageMargins'],
57
+ 'xl/charts/chart3.xml' => ['<c:pageMargins']
58
+ }
59
+ )
61
60
  end
62
61
  end
63
-
@@ -7,12 +7,12 @@ def setup
7
7
  end
8
8
 
9
9
  def teardown
10
- File.delete(@xlsx) if File.exist?(@xlsx)
10
+ @tempfile.close(true)
11
11
  end
12
12
 
13
13
  def test_chart_bar15
14
14
  @xlsx = 'chart_bar15.xlsx'
15
- workbook = WriteXLSX.new(@xlsx)
15
+ workbook = WriteXLSX.new(@io)
16
16
  worksheet1 = workbook.add_worksheet
17
17
  chart1 = workbook.add_chart(:type => 'bar')
18
18
  worksheet2 = workbook.add_worksheet
@@ -40,14 +40,12 @@ def test_chart_bar15
40
40
  chart2.add_series(:values => '=Sheet2!$A$1:$A$5')
41
41
 
42
42
  workbook.close
43
- compare_xlsx_for_regression(File.join(@regression_output, @xlsx),
44
- @xlsx,
45
- nil,
46
- {
47
- 'xl/charts/chart1.xml' => ['<c:pageMargins'],
48
- 'xl/charts/chart2.xml' => ['<c:pageMargins']
49
- }
50
- )
43
+ compare_for_regression(
44
+ nil,
45
+ {
46
+ 'xl/charts/chart1.xml' => ['<c:pageMargins'],
47
+ 'xl/charts/chart2.xml' => ['<c:pageMargins']
48
+ }
49
+ )
51
50
  end
52
51
  end
53
-
@@ -7,12 +7,12 @@ def setup
7
7
  end
8
8
 
9
9
  def teardown
10
- File.delete(@xlsx) if File.exist?(@xlsx)
10
+ @tempfile.close(true)
11
11
  end
12
12
 
13
13
  def test_chart_bar16
14
14
  @xlsx = 'chart_bar16.xlsx'
15
- workbook = WriteXLSX.new(@xlsx)
15
+ workbook = WriteXLSX.new(@io)
16
16
  worksheet = workbook.add_worksheet
17
17
  chart = workbook.add_chart(:type => 'bar')
18
18
 
@@ -39,13 +39,11 @@ def test_chart_bar16
39
39
  chart.set_legend(:position => 'bottom')
40
40
 
41
41
  workbook.close
42
- compare_xlsx_for_regression(File.join(@regression_output, @xlsx),
43
- @xlsx,
44
- nil,
45
- {
46
- 'xl/charts/chart1.xml' => ['<c:pageMargins']
47
- }
48
- )
42
+ compare_for_regression(
43
+ nil,
44
+ {
45
+ 'xl/charts/chart1.xml' => ['<c:pageMargins']
46
+ }
47
+ )
49
48
  end
50
49
  end
51
-
@@ -7,12 +7,12 @@ def setup
7
7
  end
8
8
 
9
9
  def teardown
10
- File.delete(@xlsx) if File.exist?(@xlsx)
10
+ @tempfile.close(true)
11
11
  end
12
12
 
13
13
  def test_chart_bar17
14
14
  @xlsx = 'chart_bar17.xlsx'
15
- workbook = WriteXLSX.new(@xlsx)
15
+ workbook = WriteXLSX.new(@io)
16
16
  worksheet = workbook.add_worksheet
17
17
  chart = workbook.add_chart(:type => 'bar')
18
18
 
@@ -35,13 +35,11 @@ def test_chart_bar17
35
35
  chart.activate
36
36
 
37
37
  workbook.close
38
- compare_xlsx_for_regression(File.join(@regression_output, @xlsx),
39
- @xlsx,
40
- nil,
41
- {
42
- 'xl/charts/chart1.xml' => ['<c:pageMargins']
43
- }
44
- )
38
+ compare_for_regression(
39
+ nil,
40
+ {
41
+ 'xl/charts/chart1.xml' => ['<c:pageMargins']
42
+ }
43
+ )
45
44
  end
46
45
  end
47
-
@@ -7,12 +7,12 @@ def setup
7
7
  end
8
8
 
9
9
  def teardown
10
- File.delete(@xlsx) if File.exist?(@xlsx)
10
+ @tempfile.close(true)
11
11
  end
12
12
 
13
13
  def test_chart_bar18
14
14
  @xlsx = 'chart_bar18.xlsx'
15
- workbook = WriteXLSX.new(@xlsx)
15
+ workbook = WriteXLSX.new(@io)
16
16
  worksheet = workbook.add_worksheet
17
17
  chart = workbook.add_chart(:type => 'bar')
18
18
 
@@ -37,22 +37,20 @@ def test_chart_bar18
37
37
  chart.set_footer('&A')
38
38
 
39
39
  workbook.close
40
- compare_xlsx_for_regression(File.join(@regression_output, @xlsx),
41
- @xlsx,
42
- [
43
- 'xl/printerSettings/printerSettings1.bin',
44
- 'xl/chartsheets/_rels/sheet1.xml.rels',
45
- '[Content_Types].xml'
46
- ],
47
- {
48
- 'xl/chartsheets/sheet1.xml' => [
49
- '<pageMargins',
50
- '<pageSetup',
51
- '<drawing', # Id is wrong due to missing printerbin.
52
- ],
53
- 'xl/charts/chart1.xml' => ['<c:pageMargins']
54
- }
55
- )
40
+ compare_for_regression(
41
+ [
42
+ 'xl/printerSettings/printerSettings1.bin',
43
+ 'xl/chartsheets/_rels/sheet1.xml.rels',
44
+ '[Content_Types].xml'
45
+ ],
46
+ {
47
+ 'xl/chartsheets/sheet1.xml' => [
48
+ '<pageMargins',
49
+ '<pageSetup',
50
+ '<drawing', # Id is wrong due to missing printerbin.
51
+ ],
52
+ 'xl/charts/chart1.xml' => ['<c:pageMargins']
53
+ }
54
+ )
56
55
  end
57
56
  end
58
-
@@ -7,12 +7,12 @@ def setup
7
7
  end
8
8
 
9
9
  def teardown
10
- File.delete(@xlsx) if File.exist?(@xlsx)
10
+ @tempfile.close(true)
11
11
  end
12
12
 
13
13
  def test_chart_bar19
14
14
  @xlsx = 'chart_bar19.xlsx'
15
- workbook = WriteXLSX.new(@xlsx)
15
+ workbook = WriteXLSX.new(@io)
16
16
  worksheet = workbook.add_worksheet
17
17
  chart = workbook.add_chart(:type => 'bar', :embedded => 1)
18
18
 
@@ -38,13 +38,11 @@ def test_chart_bar19
38
38
  worksheet.insert_chart('E9', chart)
39
39
 
40
40
  workbook.close
41
- compare_xlsx_for_regression(File.join(@regression_output, @xlsx),
42
- @xlsx,
43
- nil,
44
- {
45
- 'xl/charts/chart1.xml' => ['<c:pageMargins']
46
- }
47
- )
41
+ compare_for_regression(
42
+ nil,
43
+ {
44
+ 'xl/charts/chart1.xml' => ['<c:pageMargins']
45
+ }
46
+ )
48
47
  end
49
48
  end
50
-
@@ -7,12 +7,12 @@ def setup
7
7
  end
8
8
 
9
9
  def teardown
10
- File.delete(@xlsx) if File.exist?(@xlsx)
10
+ @tempfile.close(true)
11
11
  end
12
12
 
13
13
  def test_chart_bar20
14
14
  @xlsx = 'chart_bar20.xlsx'
15
- workbook = WriteXLSX.new(@xlsx)
15
+ workbook = WriteXLSX.new(@io)
16
16
  worksheet = workbook.add_worksheet
17
17
  chart = workbook.add_chart(:type => 'bar', :embedded => 1)
18
18
 
@@ -35,13 +35,11 @@ def test_chart_bar20
35
35
  worksheet.insert_chart('E9', chart)
36
36
 
37
37
  workbook.close
38
- compare_xlsx_for_regression(File.join(@regression_output, @xlsx),
39
- @xlsx,
40
- nil,
41
- {
42
- 'xl/charts/chart1.xml' => ['<c:pageMargins']
43
- }
44
- )
38
+ compare_for_regression(
39
+ nil,
40
+ {
41
+ 'xl/charts/chart1.xml' => ['<c:pageMargins']
42
+ }
43
+ )
45
44
  end
46
45
  end
47
-
@@ -7,12 +7,12 @@ def setup
7
7
  end
8
8
 
9
9
  def teardown
10
- File.delete(@xlsx) if File.exist?(@xlsx)
10
+ @tempfile.close(true)
11
11
  end
12
12
 
13
13
  def test_chart_bar21
14
14
  @xlsx = 'chart_bar21.xlsx'
15
- workbook = WriteXLSX.new(@xlsx)
15
+ workbook = WriteXLSX.new(@io)
16
16
  worksheet = workbook.add_worksheet
17
17
  chart = workbook.add_chart(:type => 'bar', :embedded => 1)
18
18
 
@@ -44,10 +44,6 @@ def test_chart_bar21
44
44
  worksheet.insert_chart('E9', chart)
45
45
 
46
46
  workbook.close
47
- compare_xlsx_for_regression(File.join(@regression_output, @xlsx),
48
- @xlsx,
49
- nil,
50
- nil)
47
+ compare_for_regression
51
48
  end
52
49
  end
53
-
@@ -7,12 +7,12 @@ def setup
7
7
  end
8
8
 
9
9
  def teardown
10
- File.delete(@xlsx) if File.exist?(@xlsx)
10
+ @tempfile.close(true)
11
11
  end
12
12
 
13
13
  def test_chart_bar22
14
14
  @xlsx = 'chart_bar22.xlsx'
15
- workbook = WriteXLSX.new(@xlsx)
15
+ workbook = WriteXLSX.new(@io)
16
16
  worksheet = workbook.add_worksheet
17
17
  chart = workbook.add_chart(:type => 'bar', :embedded => 1)
18
18
 
@@ -56,13 +56,11 @@ def test_chart_bar22
56
56
  worksheet.insert_chart('E9', chart)
57
57
 
58
58
  workbook.close
59
- compare_xlsx_for_regression(File.join(@regression_output, @xlsx),
60
- @xlsx,
61
- nil,
62
- {
63
- 'xl/charts/chart1.xml' => ['<c:pageMargins']
64
- }
65
- )
59
+ compare_for_regression(
60
+ nil,
61
+ {
62
+ 'xl/charts/chart1.xml' => ['<c:pageMargins']
63
+ }
64
+ )
66
65
  end
67
66
  end
68
-
@@ -7,12 +7,12 @@ def setup
7
7
  end
8
8
 
9
9
  def teardown
10
- File.delete(@xlsx) if File.exist?(@xlsx)
10
+ @tempfile.close(true)
11
11
  end
12
12
 
13
13
  def test_chart_bar23
14
14
  @xlsx = 'chart_bar23.xlsx'
15
- workbook = WriteXLSX.new(@xlsx)
15
+ workbook = WriteXLSX.new(@io)
16
16
  worksheet = workbook.add_worksheet
17
17
  chart = workbook.add_chart(:type => 'bar', :embedded => 1)
18
18
 
@@ -50,13 +50,11 @@ def test_chart_bar23
50
50
  worksheet.insert_chart('E9', chart)
51
51
 
52
52
  workbook.close
53
- compare_xlsx_for_regression(File.join(@regression_output, @xlsx),
54
- @xlsx,
55
- nil,
56
- {
57
- 'xl/charts/chart1.xml' => ['<c:pageMargins']
58
- }
59
- )
53
+ compare_for_regression(
54
+ nil,
55
+ {
56
+ 'xl/charts/chart1.xml' => ['<c:pageMargins']
57
+ }
58
+ )
60
59
  end
61
60
  end
62
-
@@ -7,12 +7,12 @@ def setup
7
7
  end
8
8
 
9
9
  def teardown
10
- File.delete(@xlsx) if File.exist?(@xlsx)
10
+ @tempfile.close(true)
11
11
  end
12
12
 
13
13
  def test_chart_bar24
14
14
  @xlsx = 'chart_bar24.xlsx'
15
- workbook = WriteXLSX.new(@xlsx)
15
+ workbook = WriteXLSX.new(@io)
16
16
  worksheet = workbook.add_worksheet
17
17
  chart = workbook.add_chart(:type => 'bar', :embedded => 1)
18
18
 
@@ -33,13 +33,12 @@ def test_chart_bar24
33
33
  worksheet.insert_chart('E9', chart)
34
34
 
35
35
  workbook.close
36
- compare_xlsx_for_regression(File.join(@regression_output, @xlsx),
37
- @xlsx,
38
- nil,
39
- {
40
- 'xl/charts/chart1.xml' => ['<c:pageMargins'],
41
- 'xl/workbook.xml' => [ '<fileVersion' ]
42
- }
43
- )
36
+ compare_for_regression(
37
+ nil,
38
+ {
39
+ 'xl/charts/chart1.xml' => ['<c:pageMargins'],
40
+ 'xl/workbook.xml' => [ '<fileVersion' ]
41
+ }
42
+ )
44
43
  end
45
44
  end