mofo 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. data/CHANGELOG +4 -0
  2. data/{tests → test}/fixtures/bob.html +0 -0
  3. data/{tests → test}/fixtures/chowhound.html +0 -0
  4. data/{tests → test}/fixtures/corkd.html +0 -0
  5. data/{tests → test}/fixtures/events.html +0 -0
  6. data/{tests → test}/fixtures/fake.html +0 -0
  7. data/{tests → test}/fixtures/fauxtank.html +0 -0
  8. data/{tests → test}/fixtures/hatom.html +0 -0
  9. data/{tests → test}/fixtures/simple.html +0 -0
  10. data/{tests → test}/fixtures/upcoming.html +0 -0
  11. data/{tests → test}/format_test.rb +1 -1
  12. data/{tests → test}/hatom_test.rb +1 -1
  13. data/{tests → test}/test_helper.rb +1 -1
  14. data/{tests → test}/xoxo_test.rb +1 -1
  15. data/vendor/{testspec-0.2.0 → testspec-0.3.0}/ChangeLog +57 -0
  16. data/vendor/{testspec-0.2.0 → testspec-0.3.0}/README +85 -2
  17. data/vendor/testspec-0.3.0/ROADMAP +1 -0
  18. data/vendor/testspec-0.3.0/Rakefile +151 -0
  19. data/vendor/{testspec-0.2.0 → testspec-0.3.0}/SPECS +11 -4
  20. data/vendor/testspec-0.3.0/TODO +2 -0
  21. data/vendor/{testspec-0.2.0 → testspec-0.3.0}/bin/specrb +3 -2
  22. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Kernel.html +35 -0
  23. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Object.html +12 -11
  24. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Spec.html +3 -7
  25. data/vendor/testspec-0.3.0/doc/classes/Test/Spec/CustomShould.html +236 -0
  26. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Spec/DefinitionError.html +0 -0
  27. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Spec/Should.html +368 -347
  28. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Spec/ShouldNot.html +195 -119
  29. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Spec/TestCase.html +29 -29
  30. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Spec/TestCase/ClassMethods.html +83 -55
  31. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Spec/TestCase/InstanceMethods.html +35 -35
  32. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Unit/UI/RDox/TestRunner.html +24 -24
  33. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Unit/UI/SpecDox/TestRunner.html +185 -177
  34. data/vendor/testspec-0.3.0/doc/created.rid +1 -0
  35. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/files/README.html +111 -4
  36. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/files/ROADMAP.html +2 -5
  37. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/files/SPECS.html +26 -5
  38. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/files/lib/test/spec/dox_rb.html +1 -1
  39. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/files/lib/test/spec/rdox_rb.html +1 -1
  40. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/files/lib/test/spec/should-output_rb.html +2 -1
  41. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/files/lib/test/spec_rb.html +2 -2
  42. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/fr_class_index.html +1 -0
  43. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/fr_file_index.html +0 -0
  44. data/vendor/testspec-0.3.0/doc/fr_method_index.html +102 -0
  45. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/index.html +0 -0
  46. data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/rdoc-style.css +0 -0
  47. data/vendor/{testspec-0.2.0 → testspec-0.3.0}/examples/stack.rb +0 -0
  48. data/vendor/{testspec-0.2.0 → testspec-0.3.0}/examples/stack_spec.rb +0 -0
  49. data/vendor/{testspec-0.2.0 → testspec-0.3.0}/lib/test/spec.rb +167 -43
  50. data/vendor/{testspec-0.2.0 → testspec-0.3.0}/lib/test/spec/dox.rb +16 -8
  51. data/vendor/{testspec-0.2.0 → testspec-0.3.0}/lib/test/spec/rdox.rb +0 -0
  52. data/vendor/{testspec-0.2.0 → testspec-0.3.0}/lib/test/spec/should-output.rb +3 -2
  53. data/vendor/{testspec-0.2.0 → testspec-0.3.0}/test/spec_dox.rb +0 -0
  54. data/vendor/{testspec-0.2.0 → testspec-0.3.0}/test/spec_flexmock.rb +0 -0
  55. data/vendor/{testspec-0.2.0 → testspec-0.3.0}/test/spec_mocha.rb +0 -0
  56. data/vendor/{testspec-0.2.0 → testspec-0.3.0}/test/spec_nestedcontexts.rb +0 -0
  57. data/vendor/{testspec-0.2.0 → testspec-0.3.0}/test/spec_should-output.rb +1 -1
  58. data/vendor/testspec-0.3.0/test/spec_testspec.rb +522 -0
  59. data/vendor/{testspec-0.2.0 → testspec-0.3.0}/test/spec_testspec_order.rb +0 -0
  60. data/vendor/{testspec-0.2.0 → testspec-0.3.0}/test/test_testunit.rb +0 -0
  61. metadata +82 -81
  62. data/vendor/testspec-0.2.0/ROADMAP +0 -3
  63. data/vendor/testspec-0.2.0/Rakefile +0 -86
  64. data/vendor/testspec-0.2.0/TODO +0 -1
  65. data/vendor/testspec-0.2.0/rdoc/created.rid +0 -1
  66. data/vendor/testspec-0.2.0/rdoc/fr_method_index.html +0 -95
  67. data/vendor/testspec-0.2.0/test/spec_testspec.rb +0 -311
@@ -86,18 +86,18 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000059">add_fault</a>&nbsp;&nbsp;
90
- <a href="#M000061">finished</a>&nbsp;&nbsp;
91
- <a href="#M000069">indent</a>&nbsp;&nbsp;
92
- <a href="#M000067">output_heading</a>&nbsp;&nbsp;
93
- <a href="#M000066">output_item</a>&nbsp;&nbsp;
94
- <a href="#M000065">output_no_nl</a>&nbsp;&nbsp;
95
- <a href="#M000062">output_result</a>&nbsp;&nbsp;
96
- <a href="#M000058">setup_mediator</a>&nbsp;&nbsp;
97
- <a href="#M000060">started</a>&nbsp;&nbsp;
98
- <a href="#M000064">test_finished</a>&nbsp;&nbsp;
99
- <a href="#M000063">test_started</a>&nbsp;&nbsp;
100
- <a href="#M000068">unmangle</a>&nbsp;&nbsp;
89
+ <a href="#M000066">add_fault</a>&nbsp;&nbsp;
90
+ <a href="#M000068">finished</a>&nbsp;&nbsp;
91
+ <a href="#M000076">indent</a>&nbsp;&nbsp;
92
+ <a href="#M000074">output_heading</a>&nbsp;&nbsp;
93
+ <a href="#M000073">output_item</a>&nbsp;&nbsp;
94
+ <a href="#M000072">output_no_nl</a>&nbsp;&nbsp;
95
+ <a href="#M000069">output_result</a>&nbsp;&nbsp;
96
+ <a href="#M000065">setup_mediator</a>&nbsp;&nbsp;
97
+ <a href="#M000067">started</a>&nbsp;&nbsp;
98
+ <a href="#M000071">test_finished</a>&nbsp;&nbsp;
99
+ <a href="#M000070">test_started</a>&nbsp;&nbsp;
100
+ <a href="#M000075">unmangle</a>&nbsp;&nbsp;
101
101
  </div>
102
102
  </div>
103
103
 
@@ -119,335 +119,343 @@
119
119
  <div id="methods">
120
120
  <h3 class="section-bar">Protected Instance methods</h3>
121
121
 
122
- <div id="method-M000059" class="method-detail">
123
- <a name="M000059"></a>
122
+ <div id="method-M000066" class="method-detail">
123
+ <a name="M000066"></a>
124
124
 
125
125
  <div class="method-heading">
126
- <a href="#M000059" class="method-signature">
126
+ <a href="#M000066" class="method-signature">
127
127
  <span class="method-name">add_fault</span><span class="method-args">(fault)</span>
128
128
  </a>
129
129
  </div>
130
130
 
131
131
  <div class="method-description">
132
132
  <p><a class="source-toggle" href="#"
133
- onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
134
- <div class="method-source-code" id="M000059-source">
133
+ onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
134
+ <div class="method-source-code" id="M000066-source">
135
135
  <pre>
136
- <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 15</span>
137
- 15: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_fault</span>(<span class="ruby-identifier">fault</span>)
138
- 16: <span class="ruby-ivar">@faults</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">fault</span>
139
- 17: <span class="ruby-identifier">word</span> = <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>[<span class="ruby-regexp re">/(.*::)?(.*)/</span>, <span class="ruby-value">2</span>].<span class="ruby-identifier">upcase</span>
140
- 18: <span class="ruby-identifier">output_no_nl</span> <span class="ruby-node">&quot; (#{word} - #{@faults.size})&quot;</span>
141
- 19: <span class="ruby-keyword kw">end</span>
136
+ <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 11</span>
137
+ 11: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_fault</span>(<span class="ruby-identifier">fault</span>)
138
+ 12: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Test</span><span class="ruby-operator">::</span><span class="ruby-constant">Spec</span><span class="ruby-operator">::</span><span class="ruby-constant">Disabled</span>
139
+ 13: <span class="ruby-ivar">@disabled</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
140
+ 14: <span class="ruby-identifier">output_no_nl</span> <span class="ruby-value str">&quot; (disabled)&quot;</span>
141
+ 15: <span class="ruby-keyword kw">else</span>
142
+ 16: <span class="ruby-ivar">@faults</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">fault</span>
143
+ 17: <span class="ruby-identifier">word</span> = <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>[<span class="ruby-regexp re">/(.*::)?(.*)/</span>, <span class="ruby-value">2</span>].<span class="ruby-identifier">upcase</span>
144
+ 18: <span class="ruby-identifier">output_no_nl</span> <span class="ruby-node">&quot; (#{word} - #{@faults.size})&quot;</span>
145
+ 19: <span class="ruby-keyword kw">end</span>
146
+ 20: <span class="ruby-keyword kw">end</span>
142
147
  </pre>
143
148
  </div>
144
149
  </div>
145
150
  </div>
146
151
 
147
- <div id="method-M000061" class="method-detail">
148
- <a name="M000061"></a>
152
+ <div id="method-M000068" class="method-detail">
153
+ <a name="M000068"></a>
149
154
 
150
155
  <div class="method-heading">
151
- <a href="#M000061" class="method-signature">
156
+ <a href="#M000068" class="method-signature">
152
157
  <span class="method-name">finished</span><span class="method-args">(elapsed_time)</span>
153
158
  </a>
154
159
  </div>
155
160
 
156
161
  <div class="method-description">
157
162
  <p><a class="source-toggle" href="#"
158
- onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
159
- <div class="method-source-code" id="M000061-source">
163
+ onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
164
+ <div class="method-source-code" id="M000068-source">
160
165
  <pre>
161
- <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 28</span>
162
- 28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">finished</span>(<span class="ruby-identifier">elapsed_time</span>)
163
- 29: <span class="ruby-identifier">nl</span>
164
- 30: <span class="ruby-identifier">output</span> <span class="ruby-node">&quot;Finished in #{elapsed_time} seconds.&quot;</span>
165
- 31: <span class="ruby-ivar">@faults</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">fault</span>, <span class="ruby-identifier">index</span><span class="ruby-operator">|</span>
166
- 32: <span class="ruby-identifier">nl</span>
167
- 33: <span class="ruby-identifier">output</span>(<span class="ruby-value str">&quot;%3d) %s&quot;</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">index</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>, <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">long_display</span>])
168
- 34: <span class="ruby-keyword kw">end</span>
169
- 35: <span class="ruby-identifier">nl</span>
170
- 36: <span class="ruby-identifier">output_result</span>
171
- 37: <span class="ruby-keyword kw">end</span>
166
+ <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 30</span>
167
+ 30: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">finished</span>(<span class="ruby-identifier">elapsed_time</span>)
168
+ 31: <span class="ruby-identifier">nl</span>
169
+ 32: <span class="ruby-identifier">output</span> <span class="ruby-node">&quot;Finished in #{elapsed_time} seconds.&quot;</span>
170
+ 33: <span class="ruby-ivar">@faults</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">fault</span>, <span class="ruby-identifier">index</span><span class="ruby-operator">|</span>
171
+ 34: <span class="ruby-identifier">nl</span>
172
+ 35: <span class="ruby-identifier">output</span>(<span class="ruby-value str">&quot;%3d) %s&quot;</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">index</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>, <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">long_display</span>])
173
+ 36: <span class="ruby-keyword kw">end</span>
174
+ 37: <span class="ruby-identifier">nl</span>
175
+ 38: <span class="ruby-identifier">output_result</span>
176
+ 39: <span class="ruby-keyword kw">end</span>
172
177
  </pre>
173
178
  </div>
174
179
  </div>
175
180
  </div>
176
181
 
177
- <div id="method-M000069" class="method-detail">
178
- <a name="M000069"></a>
182
+ <div id="method-M000076" class="method-detail">
183
+ <a name="M000076"></a>
179
184
 
180
185
  <div class="method-heading">
181
- <a href="#M000069" class="method-signature">
186
+ <a href="#M000076" class="method-signature">
182
187
  <span class="method-name">indent</span><span class="method-args">(depth)</span>
183
188
  </a>
184
189
  </div>
185
190
 
186
191
  <div class="method-description">
187
192
  <p><a class="source-toggle" href="#"
188
- onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
189
- <div class="method-source-code" id="M000069-source">
193
+ onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
194
+ <div class="method-source-code" id="M000076-source">
190
195
  <pre>
191
- <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 108</span>
192
- 108: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">depth</span>)
193
- 109: <span class="ruby-ivar">@indent</span> = <span class="ruby-identifier">depth</span>
194
- 110: <span class="ruby-ivar">@prefix</span> = <span class="ruby-value str">&quot; &quot;</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">depth</span>
195
- 111: <span class="ruby-keyword kw">end</span>
196
+ <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 116</span>
197
+ 116: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">depth</span>)
198
+ 117: <span class="ruby-ivar">@indent</span> = <span class="ruby-identifier">depth</span>
199
+ 118: <span class="ruby-ivar">@prefix</span> = <span class="ruby-value str">&quot; &quot;</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">depth</span>
200
+ 119: <span class="ruby-keyword kw">end</span>
196
201
  </pre>
197
202
  </div>
198
203
  </div>
199
204
  </div>
200
205
 
201
- <div id="method-M000067" class="method-detail">
202
- <a name="M000067"></a>
206
+ <div id="method-M000074" class="method-detail">
207
+ <a name="M000074"></a>
203
208
 
204
209
  <div class="method-heading">
205
- <a href="#M000067" class="method-signature">
210
+ <a href="#M000074" class="method-signature">
206
211
  <span class="method-name">output_heading</span><span class="method-args">(heading)</span>
207
212
  </a>
208
213
  </div>
209
214
 
210
215
  <div class="method-description">
211
216
  <p><a class="source-toggle" href="#"
212
- onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
213
- <div class="method-source-code" id="M000067-source">
217
+ onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
218
+ <div class="method-source-code" id="M000074-source">
214
219
  <pre>
215
- <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 87</span>
216
- 87: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_heading</span>(<span class="ruby-identifier">heading</span>)
217
- 88: <span class="ruby-identifier">output</span> <span class="ruby-node">&quot;#{@prefix}#{heading}&quot;</span>
218
- 89: <span class="ruby-keyword kw">end</span>
220
+ <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 95</span>
221
+ 95: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_heading</span>(<span class="ruby-identifier">heading</span>)
222
+ 96: <span class="ruby-identifier">output</span> <span class="ruby-node">&quot;#{@prefix}#{heading}&quot;</span>
223
+ 97: <span class="ruby-keyword kw">end</span>
219
224
  </pre>
220
225
  </div>
221
226
  </div>
222
227
  </div>
223
228
 
224
- <div id="method-M000066" class="method-detail">
225
- <a name="M000066"></a>
229
+ <div id="method-M000073" class="method-detail">
230
+ <a name="M000073"></a>
226
231
 
227
232
  <div class="method-heading">
228
- <a href="#M000066" class="method-signature">
233
+ <a href="#M000073" class="method-signature">
229
234
  <span class="method-name">output_item</span><span class="method-args">(item)</span>
230
235
  </a>
231
236
  </div>
232
237
 
233
238
  <div class="method-description">
234
239
  <p><a class="source-toggle" href="#"
235
- onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
236
- <div class="method-source-code" id="M000066-source">
240
+ onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
241
+ <div class="method-source-code" id="M000073-source">
237
242
  <pre>
238
- <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 83</span>
239
- 83: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_item</span>(<span class="ruby-identifier">item</span>)
240
- 84: <span class="ruby-identifier">output_no_nl</span> <span class="ruby-node">&quot;#{@prefix}- #{item}&quot;</span>
241
- 85: <span class="ruby-keyword kw">end</span>
243
+ <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 91</span>
244
+ 91: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_item</span>(<span class="ruby-identifier">item</span>)
245
+ 92: <span class="ruby-identifier">output_no_nl</span> <span class="ruby-node">&quot;#{@prefix}- #{item}&quot;</span>
246
+ 93: <span class="ruby-keyword kw">end</span>
242
247
  </pre>
243
248
  </div>
244
249
  </div>
245
250
  </div>
246
251
 
247
- <div id="method-M000065" class="method-detail">
248
- <a name="M000065"></a>
252
+ <div id="method-M000072" class="method-detail">
253
+ <a name="M000072"></a>
249
254
 
250
255
  <div class="method-heading">
251
- <a href="#M000065" class="method-signature">
256
+ <a href="#M000072" class="method-signature">
252
257
  <span class="method-name">output_no_nl</span><span class="method-args">(something, level=NORMAL)</span>
253
258
  </a>
254
259
  </div>
255
260
 
256
261
  <div class="method-description">
257
262
  <p><a class="source-toggle" href="#"
258
- onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
259
- <div class="method-source-code" id="M000065-source">
263
+ onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
264
+ <div class="method-source-code" id="M000072-source">
260
265
  <pre>
261
- <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 78</span>
262
- 78: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_no_nl</span>(<span class="ruby-identifier">something</span>, <span class="ruby-identifier">level</span>=<span class="ruby-constant">NORMAL</span>)
263
- 79: <span class="ruby-ivar">@io</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">something</span>) <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">output?</span>(<span class="ruby-identifier">level</span>))
264
- 80: <span class="ruby-ivar">@io</span>.<span class="ruby-identifier">flush</span>
265
- 81: <span class="ruby-keyword kw">end</span>
266
+ <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 86</span>
267
+ 86: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_no_nl</span>(<span class="ruby-identifier">something</span>, <span class="ruby-identifier">level</span>=<span class="ruby-constant">NORMAL</span>)
268
+ 87: <span class="ruby-ivar">@io</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">something</span>) <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">output?</span>(<span class="ruby-identifier">level</span>))
269
+ 88: <span class="ruby-ivar">@io</span>.<span class="ruby-identifier">flush</span>
270
+ 89: <span class="ruby-keyword kw">end</span>
266
271
  </pre>
267
272
  </div>
268
273
  </div>
269
274
  </div>
270
275
 
271
- <div id="method-M000062" class="method-detail">
272
- <a name="M000062"></a>
276
+ <div id="method-M000069" class="method-detail">
277
+ <a name="M000069"></a>
273
278
 
274
279
  <div class="method-heading">
275
- <a href="#M000062" class="method-signature">
280
+ <a href="#M000069" class="method-signature">
276
281
  <span class="method-name">output_result</span><span class="method-args">()</span>
277
282
  </a>
278
283
  </div>
279
284
 
280
285
  <div class="method-description">
281
286
  <p><a class="source-toggle" href="#"
282
- onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
283
- <div class="method-source-code" id="M000062-source">
287
+ onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
288
+ <div class="method-source-code" id="M000069-source">
284
289
  <pre>
285
- <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 39</span>
286
- 39: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_result</span>
287
- 40: <span class="ruby-identifier">r</span> = <span class="ruby-value str">&quot;%d specifications (%d requirements), %d failures&quot;</span> <span class="ruby-operator">%</span> [
288
- 41: <span class="ruby-ivar">@result</span>.<span class="ruby-identifier">run_count</span>, <span class="ruby-ivar">@result</span>.<span class="ruby-identifier">assertion_count</span>, <span class="ruby-ivar">@result</span>.<span class="ruby-identifier">failure_count</span>]
289
- 42: <span class="ruby-identifier">r</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;, #{@result.error_count} errors&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@result</span>.<span class="ruby-identifier">error_count</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
290
- 43: <span class="ruby-identifier">output</span> <span class="ruby-identifier">r</span>
291
- 44: <span class="ruby-keyword kw">end</span>
290
+ <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 41</span>
291
+ 41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_result</span>
292
+ 42: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@disabled</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
293
+ 43: <span class="ruby-identifier">disabled</span> = <span class="ruby-node">&quot;, #{@disabled} disabled&quot;</span>
294
+ 44: <span class="ruby-keyword kw">else</span>
295
+ 45: <span class="ruby-identifier">disabled</span> = <span class="ruby-value str">&quot;&quot;</span>
296
+ 46: <span class="ruby-keyword kw">end</span>
297
+ 47:
298
+ 48: <span class="ruby-identifier">r</span> = <span class="ruby-node">&quot;%d specifications#{disabled} (%d requirements), %d failures&quot;</span> <span class="ruby-operator">%</span> [
299
+ 49: <span class="ruby-ivar">@result</span>.<span class="ruby-identifier">run_count</span>, <span class="ruby-ivar">@result</span>.<span class="ruby-identifier">assertion_count</span>, <span class="ruby-ivar">@result</span>.<span class="ruby-identifier">failure_count</span>]
300
+ 50: <span class="ruby-identifier">r</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;, #{@result.error_count} errors&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@result</span>.<span class="ruby-identifier">error_count</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
301
+ 51: <span class="ruby-identifier">output</span> <span class="ruby-identifier">r</span>
302
+ 52: <span class="ruby-keyword kw">end</span>
292
303
  </pre>
293
304
  </div>
294
305
  </div>
295
306
  </div>
296
307
 
297
- <div id="method-M000058" class="method-detail">
298
- <a name="M000058"></a>
308
+ <div id="method-M000065" class="method-detail">
309
+ <a name="M000065"></a>
299
310
 
300
311
  <div class="method-heading">
301
- <a href="#M000058" class="method-signature">
312
+ <a href="#M000065" class="method-signature">
302
313
  <span class="method-name">setup_mediator</span><span class="method-args">()</span>
303
314
  </a>
304
315
  </div>
305
316
 
306
317
  <div class="method-description">
307
318
  <p><a class="source-toggle" href="#"
308
- onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
309
- <div class="method-source-code" id="M000058-source">
319
+ onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
320
+ <div class="method-source-code" id="M000065-source">
310
321
  <pre>
311
- <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 7</span>
312
- 7: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup_mediator</span>
313
- 8: <span class="ruby-ivar">@mediator</span> = <span class="ruby-identifier">create_mediator</span>(<span class="ruby-ivar">@suite</span>)
314
- 9: <span class="ruby-identifier">suite_name</span> = <span class="ruby-ivar">@suite</span>.<span class="ruby-identifier">to_s</span>
315
- 10: <span class="ruby-keyword kw">if</span> ( <span class="ruby-ivar">@suite</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Module</span>) )
316
- 11: <span class="ruby-identifier">suite_name</span> = <span class="ruby-ivar">@suite</span>.<span class="ruby-identifier">name</span>
317
- 12: <span class="ruby-keyword kw">end</span>
318
- 13: <span class="ruby-keyword kw">end</span>
322
+ <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 7</span>
323
+ 7: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup_mediator</span>
324
+ 8: <span class="ruby-ivar">@mediator</span> = <span class="ruby-identifier">create_mediator</span>(<span class="ruby-ivar">@suite</span>)
325
+ 9: <span class="ruby-keyword kw">end</span>
319
326
  </pre>
320
327
  </div>
321
328
  </div>
322
329
  </div>
323
330
 
324
- <div id="method-M000060" class="method-detail">
325
- <a name="M000060"></a>
331
+ <div id="method-M000067" class="method-detail">
332
+ <a name="M000067"></a>
326
333
 
327
334
  <div class="method-heading">
328
- <a href="#M000060" class="method-signature">
335
+ <a href="#M000067" class="method-signature">
329
336
  <span class="method-name">started</span><span class="method-args">(result)</span>
330
337
  </a>
331
338
  </div>
332
339
 
333
340
  <div class="method-description">
334
341
  <p><a class="source-toggle" href="#"
335
- onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
336
- <div class="method-source-code" id="M000060-source">
342
+ onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
343
+ <div class="method-source-code" id="M000067-source">
337
344
  <pre>
338
- <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 21</span>
339
- 21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">started</span>(<span class="ruby-identifier">result</span>)
340
- 22: <span class="ruby-ivar">@result</span> = <span class="ruby-identifier">result</span>
341
- 23: <span class="ruby-ivar">@context</span> = <span class="ruby-keyword kw">nil</span>
342
- 24: <span class="ruby-ivar">@contexts</span> = []
343
- 25: <span class="ruby-identifier">indent</span> <span class="ruby-value">0</span>
344
- 26: <span class="ruby-keyword kw">end</span>
345
+ <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 22</span>
346
+ 22: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">started</span>(<span class="ruby-identifier">result</span>)
347
+ 23: <span class="ruby-ivar">@result</span> = <span class="ruby-identifier">result</span>
348
+ 24: <span class="ruby-ivar">@context</span> = <span class="ruby-keyword kw">nil</span>
349
+ 25: <span class="ruby-ivar">@contexts</span> = []
350
+ 26: <span class="ruby-ivar">@disabled</span> = <span class="ruby-value">0</span>
351
+ 27: <span class="ruby-identifier">indent</span> <span class="ruby-value">0</span>
352
+ 28: <span class="ruby-keyword kw">end</span>
345
353
  </pre>
346
354
  </div>
347
355
  </div>
348
356
  </div>
349
357
 
350
- <div id="method-M000064" class="method-detail">
351
- <a name="M000064"></a>
358
+ <div id="method-M000071" class="method-detail">
359
+ <a name="M000071"></a>
352
360
 
353
361
  <div class="method-heading">
354
- <a href="#M000064" class="method-signature">
362
+ <a href="#M000071" class="method-signature">
355
363
  <span class="method-name">test_finished</span><span class="method-args">(name)</span>
356
364
  </a>
357
365
  </div>
358
366
 
359
367
  <div class="method-description">
360
368
  <p><a class="source-toggle" href="#"
361
- onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
362
- <div class="method-source-code" id="M000064-source">
369
+ onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
370
+ <div class="method-source-code" id="M000071-source">
363
371
  <pre>
364
- <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 73</span>
365
- 73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_finished</span>(<span class="ruby-identifier">name</span>)
366
- 74: <span class="ruby-comment cmt"># Don't let empty contexts clutter up the output.</span>
367
- 75: <span class="ruby-identifier">nl</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/\Adefault_test\(/</span>
368
- 76: <span class="ruby-keyword kw">end</span>
372
+ <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 81</span>
373
+ 81: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_finished</span>(<span class="ruby-identifier">name</span>)
374
+ 82: <span class="ruby-comment cmt"># Don't let empty contexts clutter up the output.</span>
375
+ 83: <span class="ruby-identifier">nl</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/\Adefault_test\(/</span>
376
+ 84: <span class="ruby-keyword kw">end</span>
369
377
  </pre>
370
378
  </div>
371
379
  </div>
372
380
  </div>
373
381
 
374
- <div id="method-M000063" class="method-detail">
375
- <a name="M000063"></a>
382
+ <div id="method-M000070" class="method-detail">
383
+ <a name="M000070"></a>
376
384
 
377
385
  <div class="method-heading">
378
- <a href="#M000063" class="method-signature">
386
+ <a href="#M000070" class="method-signature">
379
387
  <span class="method-name">test_started</span><span class="method-args">(name)</span>
380
388
  </a>
381
389
  </div>
382
390
 
383
391
  <div class="method-description">
384
392
  <p><a class="source-toggle" href="#"
385
- onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
386
- <div class="method-source-code" id="M000063-source">
393
+ onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
394
+ <div class="method-source-code" id="M000070-source">
387
395
  <pre>
388
- <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 46</span>
389
- 46: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_started</span>(<span class="ruby-identifier">name</span>)
390
- 47: <span class="ruby-identifier">contextname</span>, <span class="ruby-identifier">specname</span> = <span class="ruby-identifier">unmangle</span> <span class="ruby-identifier">name</span>
391
- 48: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">contextname</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">specname</span>.<span class="ruby-identifier">nil?</span>
392
- 49:
393
- 50: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@context</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">contextname</span>
394
- 51: <span class="ruby-ivar">@context</span> = <span class="ruby-identifier">contextname</span>
395
- 52:
396
- 53: <span class="ruby-ivar">@old_contexts</span> = <span class="ruby-ivar">@contexts</span>
397
- 54: <span class="ruby-ivar">@contexts</span> = <span class="ruby-ivar">@context</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">&quot;\t&quot;</span>)
398
- 55:
399
- 56: <span class="ruby-identifier">common</span> = <span class="ruby-value">0</span>
400
- 57: <span class="ruby-ivar">@contexts</span>.<span class="ruby-identifier">zip</span>(<span class="ruby-ivar">@old_contexts</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span>, <span class="ruby-identifier">b</span><span class="ruby-operator">|</span>
401
- 58: <span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">a</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">b</span>
402
- 59: <span class="ruby-identifier">common</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
403
- 60: }
404
- 61:
405
- 62: <span class="ruby-identifier">nl</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">common</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
396
+ <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 54</span>
397
+ 54: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_started</span>(<span class="ruby-identifier">name</span>)
398
+ 55: <span class="ruby-identifier">contextname</span>, <span class="ruby-identifier">specname</span> = <span class="ruby-identifier">unmangle</span> <span class="ruby-identifier">name</span>
399
+ 56: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">contextname</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">specname</span>.<span class="ruby-identifier">nil?</span>
400
+ 57:
401
+ 58: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@context</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">contextname</span>
402
+ 59: <span class="ruby-ivar">@context</span> = <span class="ruby-identifier">contextname</span>
403
+ 60:
404
+ 61: <span class="ruby-ivar">@old_contexts</span> = <span class="ruby-ivar">@contexts</span>
405
+ 62: <span class="ruby-ivar">@contexts</span> = <span class="ruby-ivar">@context</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">&quot;\t&quot;</span>)
406
406
  63:
407
- 64: <span class="ruby-ivar">@contexts</span>[<span class="ruby-identifier">common</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>].<span class="ruby-identifier">each_with_index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">head</span>, <span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
408
- 65: <span class="ruby-identifier">indent</span> <span class="ruby-identifier">common</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">i</span>
409
- 66: <span class="ruby-identifier">output_heading</span> <span class="ruby-identifier">head</span>
410
- 67: }
411
- 68: <span class="ruby-keyword kw">end</span>
412
- 69:
413
- 70: <span class="ruby-identifier">output_item</span> <span class="ruby-identifier">specname</span>
414
- 71: <span class="ruby-keyword kw">end</span>
407
+ 64: <span class="ruby-identifier">common</span> = <span class="ruby-value">0</span>
408
+ 65: <span class="ruby-ivar">@contexts</span>.<span class="ruby-identifier">zip</span>(<span class="ruby-ivar">@old_contexts</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span>, <span class="ruby-identifier">b</span><span class="ruby-operator">|</span>
409
+ 66: <span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">a</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">b</span>
410
+ 67: <span class="ruby-identifier">common</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
411
+ 68: }
412
+ 69:
413
+ 70: <span class="ruby-identifier">nl</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">common</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
414
+ 71:
415
+ 72: <span class="ruby-ivar">@contexts</span>[<span class="ruby-identifier">common</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>].<span class="ruby-identifier">each_with_index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">head</span>, <span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
416
+ 73: <span class="ruby-identifier">indent</span> <span class="ruby-identifier">common</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">i</span>
417
+ 74: <span class="ruby-identifier">output_heading</span> <span class="ruby-identifier">head</span>
418
+ 75: }
419
+ 76: <span class="ruby-keyword kw">end</span>
420
+ 77:
421
+ 78: <span class="ruby-identifier">output_item</span> <span class="ruby-identifier">specname</span>
422
+ 79: <span class="ruby-keyword kw">end</span>
415
423
  </pre>
416
424
  </div>
417
425
  </div>
418
426
  </div>
419
427
 
420
- <div id="method-M000068" class="method-detail">
421
- <a name="M000068"></a>
428
+ <div id="method-M000075" class="method-detail">
429
+ <a name="M000075"></a>
422
430
 
423
431
  <div class="method-heading">
424
- <a href="#M000068" class="method-signature">
432
+ <a href="#M000075" class="method-signature">
425
433
  <span class="method-name">unmangle</span><span class="method-args">(name)</span>
426
434
  </a>
427
435
  </div>
428
436
 
429
437
  <div class="method-description">
430
438
  <p><a class="source-toggle" href="#"
431
- onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
432
- <div class="method-source-code" id="M000068-source">
439
+ onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
440
+ <div class="method-source-code" id="M000075-source">
433
441
  <pre>
434
- <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 91</span>
435
- 91: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unmangle</span>(<span class="ruby-identifier">name</span>)
436
- 92: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/\Atest_spec \{(.*?)\} \d+ \[(.*)\]/</span>
437
- 93: <span class="ruby-identifier">contextname</span> = <span class="ruby-identifier">$1</span>
438
- 94: <span class="ruby-identifier">specname</span> = <span class="ruby-identifier">$2</span>
439
- 95: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/test_(.*?)\((.*)\)$/</span>
440
- 96: <span class="ruby-identifier">specname</span> = <span class="ruby-identifier">$1</span>
441
- 97: <span class="ruby-identifier">contextname</span> = <span class="ruby-identifier">$2</span>
442
- 98:
443
- 99: <span class="ruby-identifier">contextname</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/^Test\B|\BTest$/</span>, <span class="ruby-value str">''</span>)
444
- 100: <span class="ruby-identifier">specname</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/_/</span>, <span class="ruby-value str">' '</span>)
445
- 101: <span class="ruby-keyword kw">else</span>
446
- 102: <span class="ruby-identifier">contextname</span> = <span class="ruby-identifier">specname</span> = <span class="ruby-keyword kw">nil</span>
447
- 103: <span class="ruby-keyword kw">end</span>
448
- 104:
449
- 105: [<span class="ruby-identifier">contextname</span>, <span class="ruby-identifier">specname</span>]
450
- 106: <span class="ruby-keyword kw">end</span>
442
+ <span class="ruby-comment cmt"># File lib/test/spec/dox.rb, line 99</span>
443
+ 99: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unmangle</span>(<span class="ruby-identifier">name</span>)
444
+ 100: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/\Atest_spec \{(.*?)\} \d+ \[(.*)\]/</span>
445
+ 101: <span class="ruby-identifier">contextname</span> = <span class="ruby-identifier">$1</span>
446
+ 102: <span class="ruby-identifier">specname</span> = <span class="ruby-identifier">$2</span>
447
+ 103: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/test_(.*?)\((.*)\)$/</span>
448
+ 104: <span class="ruby-identifier">specname</span> = <span class="ruby-identifier">$1</span>
449
+ 105: <span class="ruby-identifier">contextname</span> = <span class="ruby-identifier">$2</span>
450
+ 106:
451
+ 107: <span class="ruby-identifier">contextname</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/^Test\B|\BTest$/</span>, <span class="ruby-value str">''</span>)
452
+ 108: <span class="ruby-identifier">specname</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/_/</span>, <span class="ruby-value str">' '</span>)
453
+ 109: <span class="ruby-keyword kw">else</span>
454
+ 110: <span class="ruby-identifier">contextname</span> = <span class="ruby-identifier">specname</span> = <span class="ruby-keyword kw">nil</span>
455
+ 111: <span class="ruby-keyword kw">end</span>
456
+ 112:
457
+ 113: [<span class="ruby-identifier">contextname</span>, <span class="ruby-identifier">specname</span>]
458
+ 114: <span class="ruby-keyword kw">end</span>
451
459
  </pre>
452
460
  </div>
453
461
  </div>