standup_md 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/ruby.yml +24 -0
  3. data/.gitignore +1 -0
  4. data/Gemfile +10 -0
  5. data/Gemfile.lock +23 -0
  6. data/LICENSE +21 -0
  7. data/README.md +252 -0
  8. data/Rakefile +36 -0
  9. data/_config.yml +1 -0
  10. data/bin/standup +5 -0
  11. data/doc/README_md.html +290 -0
  12. data/doc/StandupMD/Cli.html +898 -0
  13. data/doc/StandupMD.html +1453 -0
  14. data/doc/TestHelper.html +282 -0
  15. data/doc/TestStandupMD.html +1938 -0
  16. data/doc/created.rid +8 -0
  17. data/doc/css/fonts.css +167 -0
  18. data/doc/css/rdoc.css +611 -0
  19. data/doc/fonts/Lato-Light.ttf +0 -0
  20. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  21. data/doc/fonts/Lato-Regular.ttf +0 -0
  22. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  23. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  24. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  25. data/doc/images/add.png +0 -0
  26. data/doc/images/arrow_up.png +0 -0
  27. data/doc/images/brick.png +0 -0
  28. data/doc/images/brick_link.png +0 -0
  29. data/doc/images/bug.png +0 -0
  30. data/doc/images/bullet_black.png +0 -0
  31. data/doc/images/bullet_toggle_minus.png +0 -0
  32. data/doc/images/bullet_toggle_plus.png +0 -0
  33. data/doc/images/date.png +0 -0
  34. data/doc/images/delete.png +0 -0
  35. data/doc/images/find.png +0 -0
  36. data/doc/images/loadingAnimation.gif +0 -0
  37. data/doc/images/macFFBgHack.png +0 -0
  38. data/doc/images/package.png +0 -0
  39. data/doc/images/page_green.png +0 -0
  40. data/doc/images/page_white_text.png +0 -0
  41. data/doc/images/page_white_width.png +0 -0
  42. data/doc/images/plugin.png +0 -0
  43. data/doc/images/ruby.png +0 -0
  44. data/doc/images/tag_blue.png +0 -0
  45. data/doc/images/tag_green.png +0 -0
  46. data/doc/images/transparent.png +0 -0
  47. data/doc/images/wrench.png +0 -0
  48. data/doc/images/wrench_orange.png +0 -0
  49. data/doc/images/zoom.png +0 -0
  50. data/doc/index.html +286 -0
  51. data/doc/js/darkfish.js +84 -0
  52. data/doc/js/navigation.js +105 -0
  53. data/doc/js/navigation.js.gz +0 -0
  54. data/doc/js/search.js +110 -0
  55. data/doc/js/search_index.js +1 -0
  56. data/doc/js/search_index.js.gz +0 -0
  57. data/doc/js/searcher.js +229 -0
  58. data/doc/js/searcher.js.gz +0 -0
  59. data/doc/table_of_contents.html +551 -0
  60. data/lib/standup_md/cli.rb +301 -0
  61. data/lib/standup_md/version.rb +9 -0
  62. data/lib/standup_md.rb +530 -0
  63. data/standup_md.gemspec +36 -0
  64. metadata +108 -0
@@ -0,0 +1,1938 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class TestStandupMD - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
12
+ </script>
13
+
14
+ <script src="./js/navigation.js" defer></script>
15
+ <script src="./js/search.js" defer></script>
16
+ <script src="./js/search_index.js" defer></script>
17
+ <script src="./js/searcher.js" defer></script>
18
+ <script src="./js/darkfish.js" defer></script>
19
+
20
+ <link href="./css/fonts.css" rel="stylesheet">
21
+ <link href="./css/rdoc.css" rel="stylesheet">
22
+
23
+
24
+
25
+
26
+ <body id="top" role="document" class="class">
27
+ <nav role="navigation">
28
+ <div id="project-navigation">
29
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
30
+ <h2>
31
+ <a href="./index.html" rel="home">Home</a>
32
+ </h2>
33
+
34
+ <div id="table-of-contents-navigation">
35
+ <a href="./table_of_contents.html#pages">Pages</a>
36
+ <a href="./table_of_contents.html#classes">Classes</a>
37
+ <a href="./table_of_contents.html#methods">Methods</a>
38
+ </div>
39
+ </div>
40
+
41
+ <div id="search-section" role="search" class="project-section initially-hidden">
42
+ <form action="#" method="get" accept-charset="utf-8">
43
+ <div id="search-field-wrapper">
44
+ <input id="search-field" role="combobox" aria-label="Search"
45
+ aria-autocomplete="list" aria-controls="search-results"
46
+ type="text" name="search" placeholder="Search" spellcheck="false"
47
+ title="Type to search, Up and Down to navigate, Enter to load">
48
+ </div>
49
+
50
+ <ul id="search-results" aria-label="Search Results"
51
+ aria-busy="false" aria-expanded="false"
52
+ aria-atomic="false" class="initially-hidden"></ul>
53
+ </form>
54
+ </div>
55
+
56
+ </div>
57
+
58
+
59
+
60
+ <div id="class-metadata">
61
+
62
+ <div id="parent-class-section" class="nav-section">
63
+ <h3>Parent</h3>
64
+
65
+
66
+ <p class="link">Test::Unit::TestCase
67
+
68
+ </div>
69
+
70
+ <div id="includes-section" class="nav-section">
71
+ <h3>Included Modules</h3>
72
+
73
+ <ul class="link-list">
74
+
75
+
76
+ <li><a class="include" href="TestHelper.html">TestHelper</a>
77
+
78
+
79
+ </ul>
80
+ </div>
81
+
82
+
83
+ <!-- Method Quickref -->
84
+ <div id="method-list-section" class="nav-section">
85
+ <h3>Methods</h3>
86
+
87
+ <ul class="link-list" role="directory">
88
+
89
+ <li ><a href="#method-i-setup">#setup</a>
90
+
91
+ <li ><a href="#method-i-should_append-3F">#should_append?</a>
92
+
93
+ <li ><a href="#method-i-teardown">#teardown</a>
94
+
95
+ <li ><a href="#method-i-test_PREFERENCE_FILE">#test_PREFERENCE_FILE</a>
96
+
97
+ <li ><a href="#method-i-test_VERSION">#test_VERSION</a>
98
+
99
+ <li ><a href="#method-i-test_all_previous_entries">#test_all_previous_entries</a>
100
+
101
+ <li ><a href="#method-i-test_append_previous-3F">#test_append_previous?</a>
102
+
103
+ <li ><a href="#method-i-test_bullet_character">#test_bullet_character</a>
104
+
105
+ <li ><a href="#method-i-test_class_load">#test_class_load</a>
106
+
107
+ <li ><a href="#method-i-test_current_entry">#test_current_entry</a>
108
+
109
+ <li ><a href="#method-i-test_current_entry_tasks">#test_current_entry_tasks</a>
110
+
111
+ <li ><a href="#method-i-test_current_header">#test_current_header</a>
112
+
113
+ <li ><a href="#method-i-test_directory">#test_directory</a>
114
+
115
+ <li ><a href="#method-i-test_edit-3F">#test_edit?</a>
116
+
117
+ <li ><a href="#method-i-test_editor">#test_editor</a>
118
+
119
+ <li ><a href="#method-i-test_entry_previously_added-3F">#test_entry_previously_added?</a>
120
+
121
+ <li ><a href="#method-i-test_file">#test_file</a>
122
+
123
+ <li ><a href="#method-i-test_file_name_format">#test_file_name_format</a>
124
+
125
+ <li ><a href="#method-i-test_file_written-3F">#test_file_written?</a>
126
+
127
+ <li ><a href="#method-i-test_header_date_format">#test_header_date_format</a>
128
+
129
+ <li ><a href="#method-i-test_header_depth">#test_header_depth</a>
130
+
131
+ <li ><a href="#method-i-test_impediments">#test_impediments</a>
132
+
133
+ <li ><a href="#method-i-test_impediments_header">#test_impediments_header</a>
134
+
135
+ <li ><a href="#method-i-test_initialize">#test_initialize</a>
136
+
137
+ <li ><a href="#method-i-test_json-3F">#test_json?</a>
138
+
139
+ <li ><a href="#method-i-test_load">#test_load</a>
140
+
141
+ <li ><a href="#method-i-test_notes">#test_notes</a>
142
+
143
+ <li ><a href="#method-i-test_notes_header">#test_notes_header</a>
144
+
145
+ <li ><a href="#method-i-test_options">#test_options</a>
146
+
147
+ <li ><a href="#method-i-test_preferences">#test_preferences</a>
148
+
149
+ <li ><a href="#method-i-test_previous_entry_tasks">#test_previous_entry_tasks</a>
150
+
151
+ <li ><a href="#method-i-test_previous_file_when_current_and_previous_month_do_not_exist">#test_previous_file_when_current_and_previous_month_do_not_exist</a>
152
+
153
+ <li ><a href="#method-i-test_previous_file_when_current_month_file_does_not_exist_but_previous_does">#test_previous_file_when_current_month_file_does_not_exist_but_previous_does</a>
154
+
155
+ <li ><a href="#method-i-test_previous_file_when_entry_exists_for_today">#test_previous_file_when_entry_exists_for_today</a>
156
+
157
+ <li ><a href="#method-i-test_previous_header">#test_previous_header</a>
158
+
159
+ <li ><a href="#method-i-test_print_all_entries-3F">#test_print_all_entries?</a>
160
+
161
+ <li ><a href="#method-i-test_print_current_empty-3F">#test_print_current_empty?</a>
162
+
163
+ <li ><a href="#method-i-test_reload">#test_reload</a>
164
+
165
+ <li ><a href="#method-i-test_self_execute">#test_self_execute</a>
166
+
167
+ <li ><a href="#method-i-test_setting_attributes_via_block">#test_setting_attributes_via_block</a>
168
+
169
+ <li ><a href="#method-i-test_standup">#test_standup</a>
170
+
171
+ <li ><a href="#method-i-test_sub_header_depth">#test_sub_header_depth</a>
172
+
173
+ <li ><a href="#method-i-test_sub_header_order">#test_sub_header_order</a>
174
+
175
+ <li ><a href="#method-i-test_verbose-3F">#test_verbose?</a>
176
+
177
+ <li ><a href="#method-i-test_write">#test_write</a>
178
+
179
+ <li ><a href="#method-i-test_write-3F">#test_write?</a>
180
+
181
+ </ul>
182
+ </div>
183
+
184
+ </div>
185
+ </nav>
186
+
187
+ <main role="main" aria-labelledby="class-TestStandupMD">
188
+ <h1 id="class-TestStandupMD" class="class">
189
+ class TestStandupMD
190
+ </h1>
191
+
192
+ <section class="description">
193
+
194
+ <p>The test suite for <code>CLI</code>.</p>
195
+
196
+ <p>The test suite for <code>StandupMD</code>.</p>
197
+
198
+ </section>
199
+
200
+
201
+ <section id="5Buntitled-5D" class="documentation-section">
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
212
+ <header>
213
+ <h3>Public Instance Methods</h3>
214
+ </header>
215
+
216
+
217
+ <div id="method-i-setup" class="method-detail ">
218
+
219
+ <div class="method-heading">
220
+ <span class="method-name">setup</span><span
221
+ class="method-args">()</span>
222
+
223
+ <span class="method-click-advice">click to toggle source</span>
224
+
225
+ </div>
226
+
227
+
228
+ <div class="method-description">
229
+
230
+ <p>Set working directory, current month&#39;s file, and last month&#39;s file, which will be created and destroyed for each test.</p>
231
+
232
+
233
+
234
+
235
+ <div class="method-source-code" id="setup-source">
236
+ <pre><span class="ruby-comment"># File test/standup_md/cli_test.rb, line 12</span>
237
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">setup</span>
238
+ <span class="ruby-ivar">@workdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">__dir__</span>, <span class="ruby-string">&#39;files&#39;</span>)
239
+ <span class="ruby-ivar">@current_test_file</span> =
240
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@workdir</span>, <span class="ruby-constant">Date</span>.<span class="ruby-identifier">today</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-string">&#39;%Y_%m.md&#39;</span>))
241
+ <span class="ruby-ivar">@previous_month_test_file</span> =
242
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@workdir</span>, <span class="ruby-constant">Date</span>.<span class="ruby-identifier">today</span>.<span class="ruby-identifier">prev_month</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-string">&#39;%Y_%m.md&#39;</span>))
243
+ <span class="ruby-ivar">@options</span> = [<span class="ruby-string">&#39;--no-edit&#39;</span>, <span class="ruby-string">&#39;--no-write&#39;</span>, <span class="ruby-node">&quot;--directory=#{@workdir}&quot;</span>]
244
+ <span class="ruby-keyword">end</span></pre>
245
+ </div>
246
+
247
+ </div>
248
+
249
+
250
+
251
+
252
+ </div>
253
+
254
+
255
+ <div id="method-i-should_append-3F" class="method-detail ">
256
+
257
+ <div class="method-heading">
258
+ <span class="method-name">should_append?</span><span
259
+ class="method-args">()</span>
260
+
261
+ <span class="method-click-advice">click to toggle source</span>
262
+
263
+ </div>
264
+
265
+
266
+ <div class="method-description">
267
+
268
+ <p>True only if <code>--no-append</code> and <code>--previous-entry-tasks</code> are passed.</p>
269
+
270
+
271
+
272
+
273
+ <div class="method-source-code" id="should_append-3F-source">
274
+ <pre><span class="ruby-comment"># File test/standup_md/cli_test.rb, line 161</span>
275
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">should_append?</span>
276
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>
277
+ <span class="ruby-identifier">refute</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">should_append?</span>)
278
+
279
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>[<span class="ruby-string">&#39;--no-append&#39;</span>]
280
+ <span class="ruby-identifier">refute</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">should_append?</span>)
281
+
282
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>([<span class="ruby-string">&#39;--no-append&#39;</span>, <span class="ruby-string">&#39;--previous-entry-tasks=&quot;test one&quot;,&quot;test two&quot;&#39;</span>])
283
+ <span class="ruby-identifier">refute</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">should_append?</span>)
284
+
285
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>([<span class="ruby-string">&#39;--previous-entry-tasks=&quot;test one&quot;,&quot;test two&quot;&#39;</span>])
286
+ <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">should_append?</span>)
287
+ <span class="ruby-keyword">end</span></pre>
288
+ </div>
289
+
290
+ </div>
291
+
292
+
293
+
294
+
295
+ </div>
296
+
297
+
298
+ <div id="method-i-teardown" class="method-detail ">
299
+
300
+ <div class="method-heading">
301
+ <span class="method-name">teardown</span><span
302
+ class="method-args">()</span>
303
+
304
+ <span class="method-click-advice">click to toggle source</span>
305
+
306
+ </div>
307
+
308
+
309
+ <div class="method-description">
310
+
311
+ <p>Destroy the working directory and its contents.</p>
312
+
313
+
314
+
315
+
316
+ <div class="method-source-code" id="teardown-source">
317
+ <pre><span class="ruby-comment"># File test/standup_md/cli_test.rb, line 23</span>
318
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">teardown</span>
319
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm_r</span>(<span class="ruby-ivar">@workdir</span>) <span class="ruby-keyword">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-ivar">@workdir</span>)
320
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm</span>(<span class="ruby-ivar">@current_test_file</span>) <span class="ruby-keyword">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>(<span class="ruby-ivar">@current_test_file</span>)
321
+ <span class="ruby-keyword">end</span></pre>
322
+ </div>
323
+
324
+ </div>
325
+
326
+
327
+
328
+
329
+ </div>
330
+
331
+
332
+ <div id="method-i-test_PREFERENCE_FILE" class="method-detail ">
333
+
334
+ <div class="method-heading">
335
+ <span class="method-name">test_PREFERENCE_FILE</span><span
336
+ class="method-args">()</span>
337
+
338
+ <span class="method-click-advice">click to toggle source</span>
339
+
340
+ </div>
341
+
342
+
343
+ <div class="method-description">
344
+
345
+ <p>The user&#39;s preference file is a string.</p>
346
+
347
+
348
+
349
+
350
+ <div class="method-source-code" id="test_PREFERENCE_FILE-source">
351
+ <pre><span class="ruby-comment"># File test/standup_md/cli_test.rb, line 30</span>
352
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_PREFERENCE_FILE</span>
353
+ <span class="ruby-identifier">assert_equal</span>(
354
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">ENV</span>[<span class="ruby-string">&#39;HOME&#39;</span>], <span class="ruby-string">&#39;.standup_md.yml&#39;</span>)),
355
+ <span class="ruby-constant">StandupMD</span><span class="ruby-operator">::</span><span class="ruby-constant">CLI</span><span class="ruby-operator">::</span><span class="ruby-constant">PREFERENCE_FILE</span>
356
+ )
357
+ <span class="ruby-keyword">end</span></pre>
358
+ </div>
359
+
360
+ </div>
361
+
362
+
363
+
364
+
365
+ </div>
366
+
367
+
368
+ <div id="method-i-test_VERSION" class="method-detail ">
369
+
370
+ <div class="method-heading">
371
+ <span class="method-name">test_VERSION</span><span
372
+ class="method-args">()</span>
373
+
374
+ <span class="method-click-advice">click to toggle source</span>
375
+
376
+ </div>
377
+
378
+
379
+ <div class="method-description">
380
+
381
+ <p><code>StandupMD::VERSION</code> should consist of three integers separated by dots.</p>
382
+
383
+
384
+
385
+
386
+ <div class="method-source-code" id="test_VERSION-source">
387
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 63</span>
388
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_VERSION</span>
389
+ <span class="ruby-identifier">assert_match</span>(<span class="ruby-regexp">/\d+\.\d+.\d+/</span>, <span class="ruby-operator">::</span><span class="ruby-constant">StandupMD</span><span class="ruby-operator">::</span><span class="ruby-constant">VERSION</span>)
390
+ <span class="ruby-keyword">end</span></pre>
391
+ </div>
392
+
393
+ </div>
394
+
395
+
396
+
397
+
398
+ </div>
399
+
400
+
401
+ <div id="method-i-test_all_previous_entries" class="method-detail ">
402
+
403
+ <div class="method-heading">
404
+ <span class="method-name">test_all_previous_entries</span><span
405
+ class="method-args">()</span>
406
+
407
+ <span class="method-click-advice">click to toggle source</span>
408
+
409
+ </div>
410
+
411
+
412
+ <div class="method-description">
413
+
414
+ <p>Should be all entries before the current entry.</p>
415
+
416
+
417
+
418
+
419
+ <div class="method-source-code" id="test_all_previous_entries-source">
420
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 130</span>
421
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_all_previous_entries</span>
422
+ <span class="ruby-identifier">create_standup_file</span>(<span class="ruby-ivar">@current_test_file</span>)
423
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
424
+ <span class="ruby-identifier">assert_equal</span>(
425
+ <span class="ruby-identifier">fixtures</span>[<span class="ruby-string">&#39;previous_entry_tasks&#39;</span>],
426
+ <span class="ruby-identifier">su</span>.<span class="ruby-identifier">all_previous_entries</span>
427
+ )
428
+ <span class="ruby-keyword">end</span></pre>
429
+ </div>
430
+
431
+ </div>
432
+
433
+
434
+
435
+
436
+ </div>
437
+
438
+
439
+ <div id="method-i-test_append_previous-3F" class="method-detail ">
440
+
441
+ <div class="method-heading">
442
+ <span class="method-name">test_append_previous?</span><span
443
+ class="method-args">()</span>
444
+
445
+ <span class="method-click-advice">click to toggle source</span>
446
+
447
+ </div>
448
+
449
+
450
+ <div class="method-description">
451
+
452
+ <p>True by default. False if flag is passed.</p>
453
+
454
+
455
+
456
+
457
+ <div class="method-source-code" id="test_append_previous-3F-source">
458
+ <pre><span class="ruby-comment"># File test/standup_md/cli_test.rb, line 151</span>
459
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_append_previous?</span>
460
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>
461
+ <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">append_previous?</span>)
462
+
463
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>([<span class="ruby-string">&#39;--no-append-previous&#39;</span>])
464
+ <span class="ruby-identifier">refute</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">append_previous?</span>)
465
+ <span class="ruby-keyword">end</span></pre>
466
+ </div>
467
+
468
+ </div>
469
+
470
+
471
+
472
+
473
+ </div>
474
+
475
+
476
+ <div id="method-i-test_bullet_character" class="method-detail ">
477
+
478
+ <div class="method-heading">
479
+ <span class="method-name">test_bullet_character</span><span
480
+ class="method-args">()</span>
481
+
482
+ <span class="method-click-advice">click to toggle source</span>
483
+
484
+ </div>
485
+
486
+
487
+ <div class="method-description">
488
+
489
+ <p>Should be able to change the bullet character but should raise if not * or -</p>
490
+
491
+
492
+
493
+
494
+ <div class="method-source-code" id="test_bullet_character-source">
495
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 202</span>
496
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_bullet_character</span>
497
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
498
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;-&#39;</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">bullet_character</span>)
499
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">bullet_character</span> = <span class="ruby-string">&#39;*&#39;</span> }
500
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;*&#39;</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">bullet_character</span>)
501
+ <span class="ruby-identifier">assert_raise</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">bullet_character</span> = <span class="ruby-string">&#39;&gt;&#39;</span> }
502
+ <span class="ruby-keyword">end</span></pre>
503
+ </div>
504
+
505
+ </div>
506
+
507
+
508
+
509
+
510
+ </div>
511
+
512
+
513
+ <div id="method-i-test_class_load" class="method-detail ">
514
+
515
+ <div class="method-heading">
516
+ <span class="method-name">test_class_load</span><span
517
+ class="method-args">()</span>
518
+
519
+ <span class="method-click-advice">click to toggle source</span>
520
+
521
+ </div>
522
+
523
+
524
+ <div class="method-description">
525
+
526
+ <p>Make sure load accepts a hash of attributes, sets them, and returns an instance of itself.</p>
527
+
528
+
529
+
530
+
531
+ <div class="method-source-code" id="test_class_load-source">
532
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 30</span>
533
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_class_load</span>
534
+ <span class="ruby-identifier">assert_nothing_raised</span> <span class="ruby-keyword">do</span>
535
+ <span class="ruby-constant">StandupMD</span>.<span class="ruby-identifier">load</span>({<span class="ruby-value">directory:</span> <span class="ruby-ivar">@workdir</span>, <span class="ruby-value">bullet_character:</span> <span class="ruby-string">&#39;*&#39;</span>})
536
+ <span class="ruby-keyword">end</span>
537
+ <span class="ruby-identifier">su</span> = <span class="ruby-constant">StandupMD</span>.<span class="ruby-identifier">load</span>({<span class="ruby-value">directory:</span> <span class="ruby-ivar">@workdir</span>, <span class="ruby-value">bullet_character:</span> <span class="ruby-string">&#39;*&#39;</span>})
538
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-ivar">@workdir</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">directory</span>)
539
+ <span class="ruby-identifier">assert_instance_of</span>(<span class="ruby-constant">StandupMD</span>, <span class="ruby-identifier">su</span>)
540
+ <span class="ruby-keyword">end</span></pre>
541
+ </div>
542
+
543
+ </div>
544
+
545
+
546
+
547
+
548
+ </div>
549
+
550
+
551
+ <div id="method-i-test_current_entry" class="method-detail ">
552
+
553
+ <div class="method-heading">
554
+ <span class="method-name">test_current_entry</span><span
555
+ class="method-args">()</span>
556
+
557
+ <span class="method-click-advice">click to toggle source</span>
558
+
559
+ </div>
560
+
561
+
562
+ <div class="method-description">
563
+
564
+ <p><code>current_entry</code> should be a hash. If <code>file</code> already has an entry for today, it will be read and used as <code>current_entry</code>. If there is no entry for today, one should be generated from scaffolding.</p>
565
+
566
+
567
+
568
+
569
+ <div class="method-source-code" id="test_current_entry-source">
570
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 119</span>
571
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_current_entry</span>
572
+ <span class="ruby-identifier">create_standup_file</span>(<span class="ruby-ivar">@current_test_file</span>)
573
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
574
+ <span class="ruby-identifier">assert_equal</span>(
575
+ <span class="ruby-identifier">fixtures</span>[<span class="ruby-string">&#39;current_entry_tasks&#39;</span>][<span class="ruby-constant">Date</span>.<span class="ruby-identifier">today</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-string">&#39;%Y-%m-%d&#39;</span>)],
576
+ <span class="ruby-identifier">su</span>.<span class="ruby-identifier">current_entry</span>
577
+ )
578
+ <span class="ruby-keyword">end</span></pre>
579
+ </div>
580
+
581
+ </div>
582
+
583
+
584
+
585
+
586
+ </div>
587
+
588
+
589
+ <div id="method-i-test_current_entry_tasks" class="method-detail ">
590
+
591
+ <div class="method-heading">
592
+ <span class="method-name">test_current_entry_tasks</span><span
593
+ class="method-args">()</span>
594
+
595
+ <span class="method-click-advice">click to toggle source</span>
596
+
597
+ </div>
598
+
599
+
600
+ <div class="method-description">
601
+
602
+ <p>Should be able to add tasks for current_entry.</p>
603
+
604
+
605
+
606
+
607
+ <div class="method-source-code" id="test_current_entry_tasks-source">
608
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 165</span>
609
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_current_entry_tasks</span>
610
+ <span class="ruby-identifier">create_standup_file</span>(<span class="ruby-ivar">@current_test_file</span>)
611
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
612
+ <span class="ruby-identifier">assert_equal</span>([<span class="ruby-string">&quot;&lt;!-- ADD TODAY&#39;S WORK HERE --&gt;&quot;</span>], <span class="ruby-identifier">su</span>.<span class="ruby-identifier">current_entry_tasks</span>)
613
+ <span class="ruby-identifier">assert_raise</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">current_entry_tasks</span> = <span class="ruby-string">&#39;not array&#39;</span> }
614
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">current_entry_tasks</span> = [<span class="ruby-string">&#39;An array&#39;</span>] }
615
+ <span class="ruby-identifier">assert_equal</span>([<span class="ruby-string">&quot;An array&quot;</span>], <span class="ruby-identifier">su</span>.<span class="ruby-identifier">current_entry_tasks</span>)
616
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">current_entry_tasks</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&#39;Another task&#39;</span> }
617
+ <span class="ruby-identifier">assert_includes</span>(<span class="ruby-identifier">su</span>.<span class="ruby-identifier">current_entry_tasks</span>, <span class="ruby-string">&#39;Another task&#39;</span>)
618
+ <span class="ruby-keyword">end</span></pre>
619
+ </div>
620
+
621
+ </div>
622
+
623
+
624
+
625
+
626
+ </div>
627
+
628
+
629
+ <div id="method-i-test_current_header" class="method-detail ">
630
+
631
+ <div class="method-heading">
632
+ <span class="method-name">test_current_header</span><span
633
+ class="method-args">()</span>
634
+
635
+ <span class="method-click-advice">click to toggle source</span>
636
+
637
+ </div>
638
+
639
+
640
+ <div class="method-description">
641
+
642
+ <p>Should be changeable and used as the header for <code>current_entry</code></p>
643
+
644
+
645
+
646
+
647
+ <div class="method-source-code" id="test_current_header-source">
648
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 267</span>
649
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_current_header</span>
650
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
651
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;Current&#39;</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">current_header</span>)
652
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">current_header</span> = <span class="ruby-string">&#39;Today&#39;</span> }
653
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;Today&#39;</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">current_header</span>)
654
+ <span class="ruby-keyword">end</span></pre>
655
+ </div>
656
+
657
+ </div>
658
+
659
+
660
+
661
+
662
+ </div>
663
+
664
+
665
+ <div id="method-i-test_directory" class="method-detail ">
666
+
667
+ <div class="method-heading">
668
+ <span class="method-name">test_directory</span><span
669
+ class="method-args">()</span>
670
+
671
+ <span class="method-click-advice">click to toggle source</span>
672
+
673
+ </div>
674
+
675
+
676
+ <div class="method-description">
677
+
678
+ <p>Directory should default be settable, and where standup files are read from.</p>
679
+
680
+
681
+
682
+
683
+ <div class="method-source-code" id="test_directory-source">
684
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 141</span>
685
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_directory</span>
686
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
687
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-ivar">@workdir</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">directory</span>)
688
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">directory</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@workdir</span>, <span class="ruby-string">&#39;TEST&#39;</span>) }
689
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@workdir</span>, <span class="ruby-string">&#39;TEST&#39;</span>), <span class="ruby-identifier">su</span>.<span class="ruby-identifier">directory</span>)
690
+ <span class="ruby-identifier">assert</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">su</span>.<span class="ruby-identifier">directory</span>))
691
+ <span class="ruby-keyword">end</span></pre>
692
+ </div>
693
+
694
+ </div>
695
+
696
+
697
+
698
+
699
+ </div>
700
+
701
+
702
+ <div id="method-i-test_edit-3F" class="method-detail ">
703
+
704
+ <div class="method-heading">
705
+ <span class="method-name">test_edit?</span><span
706
+ class="method-args">()</span>
707
+
708
+ <span class="method-click-advice">click to toggle source</span>
709
+
710
+ </div>
711
+
712
+
713
+ <div class="method-description">
714
+
715
+ <p>True by default. False if flag is passed.</p>
716
+
717
+
718
+
719
+
720
+ <div class="method-source-code" id="test_edit-3F-source">
721
+ <pre><span class="ruby-comment"># File test/standup_md/cli_test.rb, line 141</span>
722
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_edit?</span>
723
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>
724
+ <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">edit?</span>)
725
+
726
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>([<span class="ruby-string">&#39;--no-edit&#39;</span>])
727
+ <span class="ruby-identifier">refute</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">edit?</span>)
728
+ <span class="ruby-keyword">end</span></pre>
729
+ </div>
730
+
731
+ </div>
732
+
733
+
734
+
735
+
736
+ </div>
737
+
738
+
739
+ <div id="method-i-test_editor" class="method-detail ">
740
+
741
+ <div class="method-heading">
742
+ <span class="method-name">test_editor</span><span
743
+ class="method-args">()</span>
744
+
745
+ <span class="method-click-advice">click to toggle source</span>
746
+
747
+ </div>
748
+
749
+
750
+ <div class="method-description">
751
+
752
+ <p>The editor should be set by preferences, or env, or set to &#39;vim&#39;.</p>
753
+
754
+
755
+
756
+
757
+ <div class="method-source-code" id="test_editor-source">
758
+ <pre><span class="ruby-comment"># File test/standup_md/cli_test.rb, line 75</span>
759
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_editor</span>
760
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>
761
+ <span class="ruby-keyword">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&#39;VISUAL&#39;</span>]
762
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-constant">ENV</span>[<span class="ruby-string">&#39;VISUAL&#39;</span>], <span class="ruby-identifier">c</span>.<span class="ruby-identifier">editor</span>)
763
+ <span class="ruby-keyword">elsif</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&#39;EDITOR&#39;</span>]
764
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-constant">ENV</span>[<span class="ruby-string">&#39;EDITOR&#39;</span>], <span class="ruby-identifier">c</span>.<span class="ruby-identifier">editor</span>)
765
+ <span class="ruby-keyword">else</span>
766
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;vim&#39;</span>, <span class="ruby-identifier">c</span>.<span class="ruby-identifier">editor</span>)
767
+ <span class="ruby-keyword">end</span>
768
+
769
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>([<span class="ruby-string">&#39;--editor=mate&#39;</span>])
770
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;mate&#39;</span>, <span class="ruby-identifier">c</span>.<span class="ruby-identifier">editor</span>)
771
+ <span class="ruby-keyword">end</span></pre>
772
+ </div>
773
+
774
+ </div>
775
+
776
+
777
+
778
+
779
+ </div>
780
+
781
+
782
+ <div id="method-i-test_entry_previously_added-3F" class="method-detail ">
783
+
784
+ <div class="method-heading">
785
+ <span class="method-name">test_entry_previously_added?</span><span
786
+ class="method-args">()</span>
787
+
788
+ <span class="method-click-advice">click to toggle source</span>
789
+
790
+ </div>
791
+
792
+
793
+ <div class="method-description">
794
+
795
+ <p>Should be true if <code>current_entry</code> was in the file at the time it was read.</p>
796
+
797
+
798
+
799
+
800
+ <div class="method-source-code" id="test_entry_previously_added-3F-source">
801
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 314</span>
802
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_entry_previously_added?</span>
803
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
804
+ <span class="ruby-identifier">refute</span>(<span class="ruby-identifier">su</span>.<span class="ruby-identifier">entry_previously_added?</span>)
805
+ <span class="ruby-identifier">create_standup_file</span>(<span class="ruby-ivar">@current_test_file</span>)
806
+ <span class="ruby-identifier">su</span>.<span class="ruby-identifier">load</span>
807
+ <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">su</span>.<span class="ruby-identifier">entry_previously_added?</span>)
808
+ <span class="ruby-keyword">end</span></pre>
809
+ </div>
810
+
811
+ </div>
812
+
813
+
814
+
815
+
816
+ </div>
817
+
818
+
819
+ <div id="method-i-test_file" class="method-detail ">
820
+
821
+ <div class="method-heading">
822
+ <span class="method-name">test_file</span><span
823
+ class="method-args">()</span>
824
+
825
+ <span class="method-click-advice">click to toggle source</span>
826
+
827
+ </div>
828
+
829
+
830
+ <div class="method-description">
831
+
832
+ <p>The file name should equal file_name_format parsed by Date.strftime. The default is Date.today.strftime(&#39;%Y_%m.md&#39;)</p>
833
+
834
+
835
+
836
+
837
+ <div class="method-source-code" id="test_file-source">
838
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 70</span>
839
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_file</span>
840
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
841
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-ivar">@current_test_file</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">file</span>)
842
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">file_name_format</span> = <span class="ruby-string">&#39;%y_%m.markdown&#39;</span> }
843
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">load</span> }
844
+ <span class="ruby-identifier">assert_equal</span>(
845
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@workdir</span>, <span class="ruby-constant">Date</span>.<span class="ruby-identifier">today</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-string">&#39;%y_%m.markdown&#39;</span>)),
846
+ <span class="ruby-identifier">su</span>.<span class="ruby-identifier">file</span>
847
+ )
848
+ <span class="ruby-keyword">end</span></pre>
849
+ </div>
850
+
851
+ </div>
852
+
853
+
854
+
855
+
856
+ </div>
857
+
858
+
859
+ <div id="method-i-test_file_name_format" class="method-detail ">
860
+
861
+ <div class="method-heading">
862
+ <span class="method-name">test_file_name_format</span><span
863
+ class="method-args">()</span>
864
+
865
+ <span class="method-click-advice">click to toggle source</span>
866
+
867
+ </div>
868
+
869
+
870
+ <div class="method-description">
871
+
872
+ <p>Should be changeable, and return a string parsed by <code>strftime</code>.</p>
873
+
874
+
875
+
876
+
877
+ <div class="method-source-code" id="test_file_name_format-source">
878
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 248</span>
879
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_file_name_format</span>
880
+ <span class="ruby-identifier">create_standup_file</span>(<span class="ruby-ivar">@current_test_file</span>)
881
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
882
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;%Y_%m.md&#39;</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">file_name_format</span>)
883
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">file_name_format</span> = <span class="ruby-string">&#39;%y_%m.markdown&#39;</span> }
884
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;%y_%m.markdown&#39;</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">file_name_format</span>)
885
+ <span class="ruby-keyword">end</span></pre>
886
+ </div>
887
+
888
+ </div>
889
+
890
+
891
+
892
+
893
+ </div>
894
+
895
+
896
+ <div id="method-i-test_file_written-3F" class="method-detail ">
897
+
898
+ <div class="method-heading">
899
+ <span class="method-name">test_file_written?</span><span
900
+ class="method-args">()</span>
901
+
902
+ <span class="method-click-advice">click to toggle source</span>
903
+
904
+ </div>
905
+
906
+
907
+ <div class="method-description">
908
+
909
+ <p>Should be false when first instantiated, true after <code>write</code> is called.</p>
910
+
911
+
912
+
913
+
914
+ <div class="method-source-code" id="test_file_written-3F-source">
915
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 305</span>
916
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_file_written?</span>
917
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
918
+ <span class="ruby-identifier">refute</span>(<span class="ruby-identifier">su</span>.<span class="ruby-identifier">file_written?</span>)
919
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">write</span> }
920
+ <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">su</span>.<span class="ruby-identifier">file_written?</span>)
921
+ <span class="ruby-keyword">end</span></pre>
922
+ </div>
923
+
924
+ </div>
925
+
926
+
927
+
928
+
929
+ </div>
930
+
931
+
932
+ <div id="method-i-test_header_date_format" class="method-detail ">
933
+
934
+ <div class="method-heading">
935
+ <span class="method-name">test_header_date_format</span><span
936
+ class="method-args">()</span>
937
+
938
+ <span class="method-click-advice">click to toggle source</span>
939
+
940
+ </div>
941
+
942
+
943
+ <div class="method-description">
944
+
945
+ <p>Should be changeable, and return a string parsed by <code>strftime</code>.</p>
946
+
947
+
948
+
949
+
950
+ <div class="method-source-code" id="test_header_date_format-source">
951
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 258</span>
952
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_header_date_format</span>
953
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
954
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;%Y-%m-%d&#39;</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">header_date_format</span>)
955
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">header_date_format</span> = <span class="ruby-string">&#39;%y-%m-%d&#39;</span> }
956
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;%y-%m-%d&#39;</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">header_date_format</span>)
957
+ <span class="ruby-keyword">end</span></pre>
958
+ </div>
959
+
960
+ </div>
961
+
962
+
963
+
964
+
965
+ </div>
966
+
967
+
968
+ <div id="method-i-test_header_depth" class="method-detail ">
969
+
970
+ <div class="method-heading">
971
+ <span class="method-name">test_header_depth</span><span
972
+ class="method-args">()</span>
973
+
974
+ <span class="method-click-advice">click to toggle source</span>
975
+
976
+ </div>
977
+
978
+
979
+ <div class="method-description">
980
+
981
+ <p>Should be an integer between <code>1..5</code>, but not higher than <code>sub_header_depth</code>.</p>
982
+
983
+
984
+
985
+
986
+ <div class="method-source-code" id="test_header_depth-source">
987
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 212</span>
988
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_header_depth</span>
989
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>, <span class="ruby-value">sub_header_depth:</span> <span class="ruby-value">4</span>)
990
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-value">1</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">header_depth</span>)
991
+ <span class="ruby-identifier">assert_raise</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">header_depth</span> = <span class="ruby-value">6</span> }
992
+ <span class="ruby-identifier">assert_raise</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">header_depth</span> = <span class="ruby-value">0</span> }
993
+ <span class="ruby-identifier">assert_raise</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">header_depth</span> = <span class="ruby-value">5</span> }
994
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">header_depth</span> = <span class="ruby-value">3</span> }
995
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-value">3</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">header_depth</span>)
996
+ <span class="ruby-keyword">end</span></pre>
997
+ </div>
998
+
999
+ </div>
1000
+
1001
+
1002
+
1003
+
1004
+ </div>
1005
+
1006
+
1007
+ <div id="method-i-test_impediments" class="method-detail ">
1008
+
1009
+ <div class="method-heading">
1010
+ <span class="method-name">test_impediments</span><span
1011
+ class="method-args">()</span>
1012
+
1013
+ <span class="method-click-advice">click to toggle source</span>
1014
+
1015
+ </div>
1016
+
1017
+
1018
+ <div class="method-description">
1019
+
1020
+ <p>Should be able to add impediments to the array.</p>
1021
+
1022
+
1023
+
1024
+
1025
+ <div class="method-source-code" id="test_impediments-source">
1026
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 178</span>
1027
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_impediments</span>
1028
+ <span class="ruby-identifier">create_standup_file</span>(<span class="ruby-ivar">@current_test_file</span>)
1029
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
1030
+ <span class="ruby-identifier">assert_equal</span>([<span class="ruby-string">&quot;None&quot;</span>], <span class="ruby-identifier">su</span>.<span class="ruby-identifier">impediments</span>)
1031
+ <span class="ruby-identifier">assert_raise</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">impediments</span> = <span class="ruby-string">&#39;&#39;</span>}
1032
+ <span class="ruby-identifier">new_impediments</span> = [<span class="ruby-string">&#39;Impediment 1&#39;</span>]
1033
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">impediments</span> = <span class="ruby-identifier">new_impediments</span> }
1034
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-identifier">new_impediments</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">impediments</span>)
1035
+ <span class="ruby-keyword">end</span></pre>
1036
+ </div>
1037
+
1038
+ </div>
1039
+
1040
+
1041
+
1042
+
1043
+ </div>
1044
+
1045
+
1046
+ <div id="method-i-test_impediments_header" class="method-detail ">
1047
+
1048
+ <div class="method-heading">
1049
+ <span class="method-name">test_impediments_header</span><span
1050
+ class="method-args">()</span>
1051
+
1052
+ <span class="method-click-advice">click to toggle source</span>
1053
+
1054
+ </div>
1055
+
1056
+
1057
+ <div class="method-description">
1058
+
1059
+ <p>Should be changeable and used as the header for <code>impediments</code></p>
1060
+
1061
+
1062
+
1063
+
1064
+ <div class="method-source-code" id="test_impediments_header-source">
1065
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 285</span>
1066
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_impediments_header</span>
1067
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
1068
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;Impediments&#39;</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">impediments_header</span>)
1069
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">impediments_header</span> = <span class="ruby-string">&#39;Hold Ups&#39;</span> }
1070
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;Hold Ups&#39;</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">impediments_header</span>)
1071
+ <span class="ruby-keyword">end</span></pre>
1072
+ </div>
1073
+
1074
+ </div>
1075
+
1076
+
1077
+
1078
+
1079
+ </div>
1080
+
1081
+
1082
+ <div id="method-i-test_initialize" class="method-detail ">
1083
+
1084
+ <div class="method-heading">
1085
+ <span class="method-name">test_initialize</span><span
1086
+ class="method-args">()</span>
1087
+
1088
+ <span class="method-click-advice">click to toggle source</span>
1089
+
1090
+ </div>
1091
+
1092
+
1093
+ <div class="method-description">
1094
+
1095
+ <p>The <code>initialize</code> method should accept the same parameters as <code>exectute</code>.</p>
1096
+
1097
+
1098
+
1099
+
1100
+ <div class="method-source-code" id="test_initialize-source">
1101
+ <pre><span class="ruby-comment"># File test/standup_md/cli_test.rb, line 62</span>
1102
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_initialize</span>
1103
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-constant">StandupMD</span><span class="ruby-operator">::</span><span class="ruby-constant">CLI</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@options</span>) }
1104
+ <span class="ruby-keyword">end</span></pre>
1105
+ </div>
1106
+
1107
+ </div>
1108
+
1109
+
1110
+
1111
+
1112
+ </div>
1113
+
1114
+
1115
+ <div id="method-i-test_json-3F" class="method-detail ">
1116
+
1117
+ <div class="method-heading">
1118
+ <span class="method-name">test_json?</span><span
1119
+ class="method-args">()</span>
1120
+
1121
+ <span class="method-click-advice">click to toggle source</span>
1122
+
1123
+ </div>
1124
+
1125
+
1126
+ <div class="method-description">
1127
+
1128
+ <p>False by default. True if flag is passed.</p>
1129
+
1130
+
1131
+
1132
+
1133
+ <div class="method-source-code" id="test_json-3F-source">
1134
+ <pre><span class="ruby-comment"># File test/standup_md/cli_test.rb, line 101</span>
1135
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_json?</span>
1136
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>
1137
+ <span class="ruby-identifier">refute</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">json?</span>)
1138
+
1139
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>([<span class="ruby-string">&#39;-j&#39;</span>])
1140
+ <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">json?</span>)
1141
+ <span class="ruby-keyword">end</span></pre>
1142
+ </div>
1143
+
1144
+ </div>
1145
+
1146
+
1147
+
1148
+
1149
+ </div>
1150
+
1151
+
1152
+ <div id="method-i-test_load" class="method-detail ">
1153
+
1154
+ <div class="method-heading">
1155
+ <span class="method-name">test_load</span><span
1156
+ class="method-args">()</span>
1157
+
1158
+ <span class="method-click-advice">click to toggle source</span>
1159
+
1160
+ </div>
1161
+
1162
+
1163
+ <div class="method-description">
1164
+
1165
+ <p>Should load instance variables.</p>
1166
+
1167
+
1168
+
1169
+
1170
+ <div class="method-source-code" id="test_load-source">
1171
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 332</span>
1172
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_load</span>
1173
+ <span class="ruby-identifier">su</span> = <span class="ruby-constant">StandupMD</span>.<span class="ruby-identifier">new</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">directory</span> = <span class="ruby-ivar">@workdir</span> }
1174
+ <span class="ruby-identifier">assert_nil</span>(<span class="ruby-identifier">su</span>.<span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-string">&#39;@today&#39;</span>))
1175
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">load</span> }
1176
+ <span class="ruby-identifier">refute_nil</span>(<span class="ruby-identifier">su</span>.<span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-string">&#39;@today&#39;</span>))
1177
+ <span class="ruby-keyword">end</span></pre>
1178
+ </div>
1179
+
1180
+ </div>
1181
+
1182
+
1183
+
1184
+
1185
+ </div>
1186
+
1187
+
1188
+ <div id="method-i-test_notes" class="method-detail ">
1189
+
1190
+ <div class="method-heading">
1191
+ <span class="method-name">test_notes</span><span
1192
+ class="method-args">()</span>
1193
+
1194
+ <span class="method-click-advice">click to toggle source</span>
1195
+
1196
+ </div>
1197
+
1198
+
1199
+ <div class="method-description">
1200
+
1201
+ <p>Should be able to add notes to the array.</p>
1202
+
1203
+
1204
+
1205
+
1206
+ <div class="method-source-code" id="test_notes-source">
1207
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 190</span>
1208
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_notes</span>
1209
+ <span class="ruby-identifier">create_standup_file</span>(<span class="ruby-ivar">@current_test_file</span>)
1210
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
1211
+ <span class="ruby-identifier">assert_equal</span>([], <span class="ruby-identifier">su</span>.<span class="ruby-identifier">notes</span>)
1212
+ <span class="ruby-identifier">assert_raise</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">notes</span> = <span class="ruby-string">&#39;&#39;</span>}
1213
+ <span class="ruby-identifier">new_notes</span> = [<span class="ruby-string">&#39;Note 1&#39;</span>]
1214
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">notes</span> = <span class="ruby-identifier">new_notes</span> }
1215
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-identifier">new_notes</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">notes</span>)
1216
+ <span class="ruby-keyword">end</span></pre>
1217
+ </div>
1218
+
1219
+ </div>
1220
+
1221
+
1222
+
1223
+
1224
+ </div>
1225
+
1226
+
1227
+ <div id="method-i-test_notes_header" class="method-detail ">
1228
+
1229
+ <div class="method-heading">
1230
+ <span class="method-name">test_notes_header</span><span
1231
+ class="method-args">()</span>
1232
+
1233
+ <span class="method-click-advice">click to toggle source</span>
1234
+
1235
+ </div>
1236
+
1237
+
1238
+ <div class="method-description">
1239
+
1240
+ <p>Should be changeable and used as the header for <code>notes</code></p>
1241
+
1242
+
1243
+
1244
+
1245
+ <div class="method-source-code" id="test_notes_header-source">
1246
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 294</span>
1247
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_notes_header</span>
1248
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
1249
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;Notes&#39;</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">notes_header</span>)
1250
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">notes_header</span> = <span class="ruby-string">&#39;Remember&#39;</span> }
1251
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;Remember&#39;</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">notes_header</span>)
1252
+ <span class="ruby-keyword">end</span></pre>
1253
+ </div>
1254
+
1255
+ </div>
1256
+
1257
+
1258
+
1259
+
1260
+ </div>
1261
+
1262
+
1263
+ <div id="method-i-test_options" class="method-detail ">
1264
+
1265
+ <div class="method-heading">
1266
+ <span class="method-name">test_options</span><span
1267
+ class="method-args">()</span>
1268
+
1269
+ <span class="method-click-advice">click to toggle source</span>
1270
+
1271
+ </div>
1272
+
1273
+
1274
+ <div class="method-description">
1275
+
1276
+ <p>The <code>options</code> should be an array of options passed from the command line.</p>
1277
+
1278
+
1279
+
1280
+
1281
+ <div class="method-source-code" id="test_options-source">
1282
+ <pre><span class="ruby-comment"># File test/standup_md/cli_test.rb, line 46</span>
1283
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_options</span>
1284
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>(<span class="ruby-ivar">@options</span>)
1285
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-ivar">@options</span>, <span class="ruby-identifier">c</span>.<span class="ruby-identifier">options</span>)
1286
+ <span class="ruby-keyword">end</span></pre>
1287
+ </div>
1288
+
1289
+ </div>
1290
+
1291
+
1292
+
1293
+
1294
+ </div>
1295
+
1296
+
1297
+ <div id="method-i-test_preferences" class="method-detail ">
1298
+
1299
+ <div class="method-heading">
1300
+ <span class="method-name">test_preferences</span><span
1301
+ class="method-args">()</span>
1302
+
1303
+ <span class="method-click-advice">click to toggle source</span>
1304
+
1305
+ </div>
1306
+
1307
+
1308
+ <div class="method-description">
1309
+
1310
+ <p>The <code>preferences</code> are the settings after <code>options</code> are parsed.</p>
1311
+
1312
+
1313
+
1314
+
1315
+ <div class="method-source-code" id="test_preferences-source">
1316
+ <pre><span class="ruby-comment"># File test/standup_md/cli_test.rb, line 53</span>
1317
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_preferences</span>
1318
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>(<span class="ruby-ivar">@options</span>)
1319
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-keyword">false</span>, <span class="ruby-identifier">c</span>.<span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-string">&#39;@write&#39;</span>))
1320
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-keyword">false</span>, <span class="ruby-identifier">c</span>.<span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-string">&#39;@edit&#39;</span>))
1321
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-ivar">@workdir</span>, <span class="ruby-identifier">c</span>.<span class="ruby-identifier">preferences</span>[<span class="ruby-string">&#39;directory&#39;</span>])
1322
+ <span class="ruby-keyword">end</span></pre>
1323
+ </div>
1324
+
1325
+ </div>
1326
+
1327
+
1328
+
1329
+
1330
+ </div>
1331
+
1332
+
1333
+ <div id="method-i-test_previous_entry_tasks" class="method-detail ">
1334
+
1335
+ <div class="method-heading">
1336
+ <span class="method-name">test_previous_entry_tasks</span><span
1337
+ class="method-args">()</span>
1338
+
1339
+ <span class="method-click-advice">click to toggle source</span>
1340
+
1341
+ </div>
1342
+
1343
+
1344
+ <div class="method-description">
1345
+
1346
+ <p>Should be an array of previous entry&#39;s current entry.</p>
1347
+
1348
+
1349
+
1350
+
1351
+ <div class="method-source-code" id="test_previous_entry_tasks-source">
1352
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 235</span>
1353
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_previous_entry_tasks</span>
1354
+ <span class="ruby-identifier">create_standup_file</span>(<span class="ruby-ivar">@current_test_file</span>)
1355
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
1356
+ <span class="ruby-identifier">assert_equal</span>([<span class="ruby-string">&quot;Test task 2&quot;</span>, <span class="ruby-string">&quot;Test task 4&quot;</span>], <span class="ruby-identifier">su</span>.<span class="ruby-identifier">previous_entry_tasks</span>)
1357
+ <span class="ruby-identifier">assert_raise</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">previous_entry_tasks</span> = <span class="ruby-string">&#39;not array&#39;</span> }
1358
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">previous_entry_tasks</span> = [<span class="ruby-string">&#39;An array&#39;</span>] }
1359
+ <span class="ruby-identifier">assert_equal</span>([<span class="ruby-string">&quot;An array&quot;</span>], <span class="ruby-identifier">su</span>.<span class="ruby-identifier">previous_entry_tasks</span>)
1360
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">previous_entry_tasks</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&#39;Another task&#39;</span> }
1361
+ <span class="ruby-identifier">assert_includes</span>(<span class="ruby-identifier">su</span>.<span class="ruby-identifier">previous_entry_tasks</span>, <span class="ruby-string">&#39;Another task&#39;</span>)
1362
+ <span class="ruby-keyword">end</span></pre>
1363
+ </div>
1364
+
1365
+ </div>
1366
+
1367
+
1368
+
1369
+
1370
+ </div>
1371
+
1372
+
1373
+ <div id="method-i-test_previous_file_when_current_and_previous_month_do_not_exist" class="method-detail ">
1374
+
1375
+ <div class="method-heading">
1376
+ <span class="method-name">test_previous_file_when_current_and_previous_month_do_not_exist</span><span
1377
+ class="method-args">()</span>
1378
+
1379
+ <span class="method-click-advice">click to toggle source</span>
1380
+
1381
+ </div>
1382
+
1383
+
1384
+ <div class="method-description">
1385
+
1386
+ <p>When neither last month&#39;s file, nor this month&#39;s file exist, previous_file should be an empty string.</p>
1387
+
1388
+
1389
+
1390
+
1391
+ <div class="method-source-code" id="test_previous_file_when_current_and_previous_month_do_not_exist-source">
1392
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 84</span>
1393
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_previous_file_when_current_and_previous_month_do_not_exist</span>
1394
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
1395
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;&#39;</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">previous_file</span>)
1396
+ <span class="ruby-keyword">end</span></pre>
1397
+ </div>
1398
+
1399
+ </div>
1400
+
1401
+
1402
+
1403
+
1404
+ </div>
1405
+
1406
+
1407
+ <div id="method-i-test_previous_file_when_current_month_file_does_not_exist_but_previous_does" class="method-detail ">
1408
+
1409
+ <div class="method-heading">
1410
+ <span class="method-name">test_previous_file_when_current_month_file_does_not_exist_but_previous_does</span><span
1411
+ class="method-args">()</span>
1412
+
1413
+ <span class="method-click-advice">click to toggle source</span>
1414
+
1415
+ </div>
1416
+
1417
+
1418
+ <div class="method-description">
1419
+
1420
+ <p>When last month&#39;s file exists, but this month&#39;s doesn&#39;t or is empty, previous_file should equal last menth&#39;s file.</p>
1421
+
1422
+
1423
+
1424
+
1425
+ <div class="method-source-code" id="test_previous_file_when_current_month_file_does_not_exist_but_previous_does-source">
1426
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 92</span>
1427
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_previous_file_when_current_month_file_does_not_exist_but_previous_does</span>
1428
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-ivar">@workdir</span>)
1429
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">touch</span>(<span class="ruby-ivar">@previous_month_test_file</span>)
1430
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
1431
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-ivar">@previous_month_test_file</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">previous_file</span>)
1432
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">touch</span>(<span class="ruby-ivar">@current_test_file</span>)
1433
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">load</span> }
1434
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
1435
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-ivar">@previous_month_test_file</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">previous_file</span>)
1436
+ <span class="ruby-keyword">end</span></pre>
1437
+ </div>
1438
+
1439
+ </div>
1440
+
1441
+
1442
+
1443
+
1444
+ </div>
1445
+
1446
+
1447
+ <div id="method-i-test_previous_file_when_entry_exists_for_today" class="method-detail ">
1448
+
1449
+ <div class="method-heading">
1450
+ <span class="method-name">test_previous_file_when_entry_exists_for_today</span><span
1451
+ class="method-args">()</span>
1452
+
1453
+ <span class="method-click-advice">click to toggle source</span>
1454
+
1455
+ </div>
1456
+
1457
+
1458
+ <div class="method-description">
1459
+
1460
+ <p>If there are previous entries for this month, previous file will be this month&#39;s file.</p>
1461
+
1462
+
1463
+
1464
+
1465
+ <div class="method-source-code" id="test_previous_file_when_entry_exists_for_today-source">
1466
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 106</span>
1467
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_previous_file_when_entry_exists_for_today</span>
1468
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-ivar">@workdir</span>)
1469
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">touch</span>(<span class="ruby-ivar">@current_test_file</span>)
1470
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
1471
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">write</span> }
1472
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">load</span> }
1473
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-ivar">@current_test_file</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">previous_file</span>)
1474
+ <span class="ruby-keyword">end</span></pre>
1475
+ </div>
1476
+
1477
+ </div>
1478
+
1479
+
1480
+
1481
+
1482
+ </div>
1483
+
1484
+
1485
+ <div id="method-i-test_previous_header" class="method-detail ">
1486
+
1487
+ <div class="method-heading">
1488
+ <span class="method-name">test_previous_header</span><span
1489
+ class="method-args">()</span>
1490
+
1491
+ <span class="method-click-advice">click to toggle source</span>
1492
+
1493
+ </div>
1494
+
1495
+
1496
+ <div class="method-description">
1497
+
1498
+ <p>Should be changeable and used as the header for <code>previous_entry</code></p>
1499
+
1500
+
1501
+
1502
+
1503
+ <div class="method-source-code" id="test_previous_header-source">
1504
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 276</span>
1505
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_previous_header</span>
1506
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
1507
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;Previous&#39;</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">previous_header</span>)
1508
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">previous_header</span> = <span class="ruby-string">&#39;Yesterday&#39;</span> }
1509
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;Yesterday&#39;</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">previous_header</span>)
1510
+ <span class="ruby-keyword">end</span></pre>
1511
+ </div>
1512
+
1513
+ </div>
1514
+
1515
+
1516
+
1517
+
1518
+ </div>
1519
+
1520
+
1521
+ <div id="method-i-test_print_all_entries-3F" class="method-detail ">
1522
+
1523
+ <div class="method-heading">
1524
+ <span class="method-name">test_print_all_entries?</span><span
1525
+ class="method-args">()</span>
1526
+
1527
+ <span class="method-click-advice">click to toggle source</span>
1528
+
1529
+ </div>
1530
+
1531
+
1532
+ <div class="method-description">
1533
+
1534
+ <p>False by default. True if flag is passed.</p>
1535
+
1536
+
1537
+
1538
+
1539
+ <div class="method-source-code" id="test_print_all_entries-3F-source">
1540
+ <pre><span class="ruby-comment"># File test/standup_md/cli_test.rb, line 111</span>
1541
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_print_all_entries?</span>
1542
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>
1543
+ <span class="ruby-identifier">refute</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">print_all_entries?</span>)
1544
+
1545
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>([<span class="ruby-string">&#39;-a&#39;</span>])
1546
+ <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">print_all_entries?</span>)
1547
+ <span class="ruby-keyword">end</span></pre>
1548
+ </div>
1549
+
1550
+ </div>
1551
+
1552
+
1553
+
1554
+
1555
+ </div>
1556
+
1557
+
1558
+ <div id="method-i-test_print_current_empty-3F" class="method-detail ">
1559
+
1560
+ <div class="method-heading">
1561
+ <span class="method-name">test_print_current_empty?</span><span
1562
+ class="method-args">()</span>
1563
+
1564
+ <span class="method-click-advice">click to toggle source</span>
1565
+
1566
+ </div>
1567
+
1568
+
1569
+ <div class="method-description">
1570
+
1571
+ <p>False by default. True if flag is passed.</p>
1572
+
1573
+
1574
+
1575
+
1576
+ <div class="method-source-code" id="test_print_current_empty-3F-source">
1577
+ <pre><span class="ruby-comment"># File test/standup_md/cli_test.rb, line 91</span>
1578
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_print_current_empty?</span>
1579
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>
1580
+ <span class="ruby-identifier">refute</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">print_current_entry?</span>)
1581
+
1582
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>([<span class="ruby-string">&#39;-c&#39;</span>])
1583
+ <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">print_current_entry?</span>)
1584
+ <span class="ruby-keyword">end</span></pre>
1585
+ </div>
1586
+
1587
+ </div>
1588
+
1589
+
1590
+
1591
+
1592
+ </div>
1593
+
1594
+
1595
+ <div id="method-i-test_reload" class="method-detail ">
1596
+
1597
+ <div class="method-heading">
1598
+ <span class="method-name">test_reload</span><span
1599
+ class="method-args">()</span>
1600
+
1601
+ <span class="method-click-advice">click to toggle source</span>
1602
+
1603
+ </div>
1604
+
1605
+
1606
+ <div class="method-description">
1607
+
1608
+ <p>The reload method should exist, and is an alias of <code>load</code>.</p>
1609
+
1610
+
1611
+
1612
+
1613
+ <div class="method-source-code" id="test_reload-source">
1614
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 41</span>
1615
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_reload</span>
1616
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
1617
+ <span class="ruby-identifier">assert_respond_to</span>(<span class="ruby-identifier">su</span>, <span class="ruby-value">:reload</span>)
1618
+ <span class="ruby-keyword">end</span></pre>
1619
+ </div>
1620
+
1621
+ </div>
1622
+
1623
+
1624
+
1625
+
1626
+ </div>
1627
+
1628
+
1629
+ <div id="method-i-test_self_execute" class="method-detail ">
1630
+
1631
+ <div class="method-heading">
1632
+ <span class="method-name">test_self_execute</span><span
1633
+ class="method-args">()</span>
1634
+
1635
+ <span class="method-click-advice">click to toggle source</span>
1636
+
1637
+ </div>
1638
+
1639
+
1640
+ <div class="method-description">
1641
+
1642
+ <p>The <code>execute</code> method is the entry point for the CLI. It&#39;s parameter is an array of command-line flags</p>
1643
+
1644
+
1645
+
1646
+
1647
+ <div class="method-source-code" id="test_self_execute-source">
1648
+ <pre><span class="ruby-comment"># File test/standup_md/cli_test.rb, line 40</span>
1649
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_self_execute</span>
1650
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-constant">StandupMD</span><span class="ruby-operator">::</span><span class="ruby-constant">CLI</span>.<span class="ruby-identifier">execute</span>(<span class="ruby-ivar">@options</span>) }
1651
+ <span class="ruby-keyword">end</span></pre>
1652
+ </div>
1653
+
1654
+ </div>
1655
+
1656
+
1657
+
1658
+
1659
+ </div>
1660
+
1661
+
1662
+ <div id="method-i-test_setting_attributes_via_block" class="method-detail ">
1663
+
1664
+ <div class="method-heading">
1665
+ <span class="method-name">test_setting_attributes_via_block</span><span
1666
+ class="method-args">()</span>
1667
+
1668
+ <span class="method-click-advice">click to toggle source</span>
1669
+
1670
+ </div>
1671
+
1672
+
1673
+ <div class="method-description">
1674
+
1675
+ <p>Attributes should be able to be set if you pass a block at instantiation.</p>
1676
+
1677
+
1678
+
1679
+
1680
+ <div class="method-source-code" id="test_setting_attributes_via_block-source">
1681
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 48</span>
1682
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_setting_attributes_via_block</span>
1683
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-constant">StandupMD</span>.<span class="ruby-identifier">new</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">su</span><span class="ruby-operator">|</span> <span class="ruby-identifier">su</span>.<span class="ruby-identifier">directory</span> = <span class="ruby-ivar">@workdir</span> } }
1684
+ <span class="ruby-identifier">assert_raise</span> { <span class="ruby-constant">StandupMD</span>.<span class="ruby-identifier">new</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">su</span><span class="ruby-operator">|</span> <span class="ruby-identifier">su</span>.<span class="ruby-identifier">not_a_method</span> = <span class="ruby-string">&#39;something&#39;</span>} }
1685
+ <span class="ruby-identifier">su</span> = <span class="ruby-constant">StandupMD</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span>
1686
+ <span class="ruby-identifier">s</span>.<span class="ruby-identifier">directory</span> = <span class="ruby-ivar">@workdir</span>
1687
+ <span class="ruby-identifier">s</span>.<span class="ruby-identifier">file_name_format</span> = <span class="ruby-string">&#39;%y_%m.markdown&#39;</span>
1688
+ <span class="ruby-identifier">s</span>.<span class="ruby-identifier">bullet_character</span> = <span class="ruby-string">&#39;*&#39;</span>
1689
+ <span class="ruby-keyword">end</span>
1690
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-ivar">@workdir</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">directory</span>)
1691
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;%y_%m.markdown&#39;</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">file_name_format</span>)
1692
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-string">&#39;*&#39;</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">bullet_character</span>)
1693
+ <span class="ruby-keyword">end</span></pre>
1694
+ </div>
1695
+
1696
+ </div>
1697
+
1698
+
1699
+
1700
+
1701
+ </div>
1702
+
1703
+
1704
+ <div id="method-i-test_standup" class="method-detail ">
1705
+
1706
+ <div class="method-heading">
1707
+ <span class="method-name">test_standup</span><span
1708
+ class="method-args">()</span>
1709
+
1710
+ <span class="method-click-advice">click to toggle source</span>
1711
+
1712
+ </div>
1713
+
1714
+
1715
+ <div class="method-description">
1716
+
1717
+ <p>Creates the instance of <code>StandupMD</code>.</p>
1718
+
1719
+
1720
+
1721
+
1722
+ <div class="method-source-code" id="test_standup-source">
1723
+ <pre><span class="ruby-comment"># File test/standup_md/cli_test.rb, line 68</span>
1724
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_standup</span>
1725
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>
1726
+ <span class="ruby-identifier">assert_instance_of</span>(<span class="ruby-constant">StandupMD</span>, <span class="ruby-identifier">c</span>.<span class="ruby-identifier">standup</span>)
1727
+ <span class="ruby-keyword">end</span></pre>
1728
+ </div>
1729
+
1730
+ </div>
1731
+
1732
+
1733
+
1734
+
1735
+ </div>
1736
+
1737
+
1738
+ <div id="method-i-test_sub_header_depth" class="method-detail ">
1739
+
1740
+ <div class="method-heading">
1741
+ <span class="method-name">test_sub_header_depth</span><span
1742
+ class="method-args">()</span>
1743
+
1744
+ <span class="method-click-advice">click to toggle source</span>
1745
+
1746
+ </div>
1747
+
1748
+
1749
+ <div class="method-description">
1750
+
1751
+ <p>Should be an integer between <code>2..6</code>, but not lower than <code>header_depth</code>.</p>
1752
+
1753
+
1754
+
1755
+
1756
+ <div class="method-source-code" id="test_sub_header_depth-source">
1757
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 224</span>
1758
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_sub_header_depth</span>
1759
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
1760
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-value">2</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">sub_header_depth</span>)
1761
+ <span class="ruby-identifier">assert_raise</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">sub_header_depth</span> = <span class="ruby-value">1</span> }
1762
+ <span class="ruby-identifier">assert_raise</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">sub_header_depth</span> = <span class="ruby-value">7</span> }
1763
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">sub_header_depth</span> = <span class="ruby-value">6</span> }
1764
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-value">6</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">sub_header_depth</span>)
1765
+ <span class="ruby-keyword">end</span></pre>
1766
+ </div>
1767
+
1768
+ </div>
1769
+
1770
+
1771
+
1772
+
1773
+ </div>
1774
+
1775
+
1776
+ <div id="method-i-test_sub_header_order" class="method-detail ">
1777
+
1778
+ <div class="method-heading">
1779
+ <span class="method-name">test_sub_header_order</span><span
1780
+ class="method-args">()</span>
1781
+
1782
+ <span class="method-click-advice">click to toggle source</span>
1783
+
1784
+ </div>
1785
+
1786
+
1787
+ <div class="method-description">
1788
+
1789
+ <p>The order of the subheaders is changeable, but all elements must exist.</p>
1790
+
1791
+
1792
+
1793
+
1794
+ <div class="method-source-code" id="test_sub_header_order-source">
1795
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 151</span>
1796
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_sub_header_order</span>
1797
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
1798
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-node">%w[previous current impediments notes]</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">sub_header_order</span>)
1799
+ <span class="ruby-identifier">assert_raise</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">sub_header_order</span> = <span class="ruby-string">&#39;not array&#39;</span> }
1800
+ <span class="ruby-identifier">assert_raise</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">sub_header_order</span> = <span class="ruby-node">%w[current impediments notes]</span> }
1801
+ <span class="ruby-identifier">assert_raise</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">sub_header_order</span> = <span class="ruby-node">%w[something, :previous, :current, :impediments, :notes]</span> }
1802
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">sub_header_order</span> = <span class="ruby-node">%w[current previous impediments notes]</span> }
1803
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-node">%w[current previous impediments notes]</span>, <span class="ruby-identifier">su</span>.<span class="ruby-identifier">sub_header_order</span>)
1804
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">sub_header_order</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&#39;Another task&#39;</span> }
1805
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-identifier">su</span>.<span class="ruby-identifier">sub_header_order</span>, <span class="ruby-node">%w[current previous impediments notes]</span>)
1806
+ <span class="ruby-keyword">end</span></pre>
1807
+ </div>
1808
+
1809
+ </div>
1810
+
1811
+
1812
+
1813
+
1814
+ </div>
1815
+
1816
+
1817
+ <div id="method-i-test_verbose-3F" class="method-detail ">
1818
+
1819
+ <div class="method-heading">
1820
+ <span class="method-name">test_verbose?</span><span
1821
+ class="method-args">()</span>
1822
+
1823
+ <span class="method-click-advice">click to toggle source</span>
1824
+
1825
+ </div>
1826
+
1827
+
1828
+ <div class="method-description">
1829
+
1830
+ <p>False by default. True if flag is passed.</p>
1831
+
1832
+
1833
+
1834
+
1835
+ <div class="method-source-code" id="test_verbose-3F-source">
1836
+ <pre><span class="ruby-comment"># File test/standup_md/cli_test.rb, line 121</span>
1837
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_verbose?</span>
1838
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>
1839
+ <span class="ruby-identifier">refute</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">verbose?</span>)
1840
+
1841
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>([<span class="ruby-string">&#39;-v&#39;</span>])
1842
+ <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">verbose?</span>)
1843
+ <span class="ruby-keyword">end</span></pre>
1844
+ </div>
1845
+
1846
+ </div>
1847
+
1848
+
1849
+
1850
+
1851
+ </div>
1852
+
1853
+
1854
+ <div id="method-i-test_write" class="method-detail ">
1855
+
1856
+ <div class="method-heading">
1857
+ <span class="method-name">test_write</span><span
1858
+ class="method-args">()</span>
1859
+
1860
+ <span class="method-click-advice">click to toggle source</span>
1861
+
1862
+ </div>
1863
+
1864
+
1865
+ <div class="method-description">
1866
+
1867
+ <p>Should write the file.</p>
1868
+
1869
+
1870
+
1871
+
1872
+ <div class="method-source-code" id="test_write-source">
1873
+ <pre><span class="ruby-comment"># File test/standup_md_test.rb, line 324</span>
1874
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_write</span>
1875
+ <span class="ruby-identifier">su</span> = <span class="ruby-identifier">standup</span>(<span class="ruby-ivar">@workdir</span>)
1876
+ <span class="ruby-identifier">assert_nothing_raised</span> { <span class="ruby-identifier">su</span>.<span class="ruby-identifier">write</span> }
1877
+ <span class="ruby-identifier">assert</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>(<span class="ruby-ivar">@current_test_file</span>))
1878
+ <span class="ruby-keyword">end</span></pre>
1879
+ </div>
1880
+
1881
+ </div>
1882
+
1883
+
1884
+
1885
+
1886
+ </div>
1887
+
1888
+
1889
+ <div id="method-i-test_write-3F" class="method-detail ">
1890
+
1891
+ <div class="method-heading">
1892
+ <span class="method-name">test_write?</span><span
1893
+ class="method-args">()</span>
1894
+
1895
+ <span class="method-click-advice">click to toggle source</span>
1896
+
1897
+ </div>
1898
+
1899
+
1900
+ <div class="method-description">
1901
+
1902
+ <p>True by default. False if flag is passed.</p>
1903
+
1904
+
1905
+
1906
+
1907
+ <div class="method-source-code" id="test_write-3F-source">
1908
+ <pre><span class="ruby-comment"># File test/standup_md/cli_test.rb, line 131</span>
1909
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_write?</span>
1910
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>
1911
+ <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">write?</span>)
1912
+
1913
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">cli</span>([<span class="ruby-string">&#39;--no-write&#39;</span>])
1914
+ <span class="ruby-identifier">refute</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">write?</span>)
1915
+ <span class="ruby-keyword">end</span></pre>
1916
+ </div>
1917
+
1918
+ </div>
1919
+
1920
+
1921
+
1922
+
1923
+ </div>
1924
+
1925
+
1926
+ </section>
1927
+
1928
+ </section>
1929
+
1930
+ </main>
1931
+
1932
+
1933
+ <footer id="validator-badges" role="contentinfo">
1934
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
1935
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.2.
1936
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
1937
+ </footer>
1938
+