mofo 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +4 -0
- data/{tests → test}/fixtures/bob.html +0 -0
- data/{tests → test}/fixtures/chowhound.html +0 -0
- data/{tests → test}/fixtures/corkd.html +0 -0
- data/{tests → test}/fixtures/events.html +0 -0
- data/{tests → test}/fixtures/fake.html +0 -0
- data/{tests → test}/fixtures/fauxtank.html +0 -0
- data/{tests → test}/fixtures/hatom.html +0 -0
- data/{tests → test}/fixtures/simple.html +0 -0
- data/{tests → test}/fixtures/upcoming.html +0 -0
- data/{tests → test}/format_test.rb +1 -1
- data/{tests → test}/hatom_test.rb +1 -1
- data/{tests → test}/test_helper.rb +1 -1
- data/{tests → test}/xoxo_test.rb +1 -1
- data/vendor/{testspec-0.2.0 → testspec-0.3.0}/ChangeLog +57 -0
- data/vendor/{testspec-0.2.0 → testspec-0.3.0}/README +85 -2
- data/vendor/testspec-0.3.0/ROADMAP +1 -0
- data/vendor/testspec-0.3.0/Rakefile +151 -0
- data/vendor/{testspec-0.2.0 → testspec-0.3.0}/SPECS +11 -4
- data/vendor/testspec-0.3.0/TODO +2 -0
- data/vendor/{testspec-0.2.0 → testspec-0.3.0}/bin/specrb +3 -2
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Kernel.html +35 -0
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Object.html +12 -11
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Spec.html +3 -7
- data/vendor/testspec-0.3.0/doc/classes/Test/Spec/CustomShould.html +236 -0
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Spec/DefinitionError.html +0 -0
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Spec/Should.html +368 -347
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Spec/ShouldNot.html +195 -119
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Spec/TestCase.html +29 -29
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Spec/TestCase/ClassMethods.html +83 -55
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Spec/TestCase/InstanceMethods.html +35 -35
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Unit/UI/RDox/TestRunner.html +24 -24
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Unit/UI/SpecDox/TestRunner.html +185 -177
- data/vendor/testspec-0.3.0/doc/created.rid +1 -0
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/files/README.html +111 -4
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/files/ROADMAP.html +2 -5
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/files/SPECS.html +26 -5
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/files/lib/test/spec/dox_rb.html +1 -1
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/files/lib/test/spec/rdox_rb.html +1 -1
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/files/lib/test/spec/should-output_rb.html +2 -1
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/files/lib/test/spec_rb.html +2 -2
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/fr_class_index.html +1 -0
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/fr_file_index.html +0 -0
- data/vendor/testspec-0.3.0/doc/fr_method_index.html +102 -0
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/index.html +0 -0
- data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/rdoc-style.css +0 -0
- data/vendor/{testspec-0.2.0 → testspec-0.3.0}/examples/stack.rb +0 -0
- data/vendor/{testspec-0.2.0 → testspec-0.3.0}/examples/stack_spec.rb +0 -0
- data/vendor/{testspec-0.2.0 → testspec-0.3.0}/lib/test/spec.rb +167 -43
- data/vendor/{testspec-0.2.0 → testspec-0.3.0}/lib/test/spec/dox.rb +16 -8
- data/vendor/{testspec-0.2.0 → testspec-0.3.0}/lib/test/spec/rdox.rb +0 -0
- data/vendor/{testspec-0.2.0 → testspec-0.3.0}/lib/test/spec/should-output.rb +3 -2
- data/vendor/{testspec-0.2.0 → testspec-0.3.0}/test/spec_dox.rb +0 -0
- data/vendor/{testspec-0.2.0 → testspec-0.3.0}/test/spec_flexmock.rb +0 -0
- data/vendor/{testspec-0.2.0 → testspec-0.3.0}/test/spec_mocha.rb +0 -0
- data/vendor/{testspec-0.2.0 → testspec-0.3.0}/test/spec_nestedcontexts.rb +0 -0
- data/vendor/{testspec-0.2.0 → testspec-0.3.0}/test/spec_should-output.rb +1 -1
- data/vendor/testspec-0.3.0/test/spec_testspec.rb +522 -0
- data/vendor/{testspec-0.2.0 → testspec-0.3.0}/test/spec_testspec_order.rb +0 -0
- data/vendor/{testspec-0.2.0 → testspec-0.3.0}/test/test_testunit.rb +0 -0
- metadata +82 -81
- data/vendor/testspec-0.2.0/ROADMAP +0 -3
- data/vendor/testspec-0.2.0/Rakefile +0 -86
- data/vendor/testspec-0.2.0/TODO +0 -1
- data/vendor/testspec-0.2.0/rdoc/created.rid +0 -1
- data/vendor/testspec-0.2.0/rdoc/fr_method_index.html +0 -95
- data/vendor/testspec-0.2.0/test/spec_testspec.rb +0 -311
data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Unit/UI/SpecDox/TestRunner.html
RENAMED
|
@@ -86,18 +86,18 @@
|
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
|
87
87
|
|
|
88
88
|
<div class="name-list">
|
|
89
|
-
<a href="#
|
|
90
|
-
<a href="#
|
|
91
|
-
<a href="#
|
|
92
|
-
<a href="#
|
|
93
|
-
<a href="#
|
|
94
|
-
<a href="#
|
|
95
|
-
<a href="#
|
|
96
|
-
<a href="#
|
|
97
|
-
<a href="#
|
|
98
|
-
<a href="#
|
|
99
|
-
<a href="#
|
|
100
|
-
<a href="#
|
|
89
|
+
<a href="#M000066">add_fault</a>
|
|
90
|
+
<a href="#M000068">finished</a>
|
|
91
|
+
<a href="#M000076">indent</a>
|
|
92
|
+
<a href="#M000074">output_heading</a>
|
|
93
|
+
<a href="#M000073">output_item</a>
|
|
94
|
+
<a href="#M000072">output_no_nl</a>
|
|
95
|
+
<a href="#M000069">output_result</a>
|
|
96
|
+
<a href="#M000065">setup_mediator</a>
|
|
97
|
+
<a href="#M000067">started</a>
|
|
98
|
+
<a href="#M000071">test_finished</a>
|
|
99
|
+
<a href="#M000070">test_started</a>
|
|
100
|
+
<a href="#M000075">unmangle</a>
|
|
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-
|
|
123
|
-
<a name="
|
|
122
|
+
<div id="method-M000066" class="method-detail">
|
|
123
|
+
<a name="M000066"></a>
|
|
124
124
|
|
|
125
125
|
<div class="method-heading">
|
|
126
|
-
<a href="#
|
|
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('
|
|
134
|
-
<div class="method-source-code" id="
|
|
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
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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">" (disabled)"</span>
|
|
141
|
+
15: <span class="ruby-keyword kw">else</span>
|
|
142
|
+
16: <span class="ruby-ivar">@faults</span> <span class="ruby-operator"><<</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">" (#{word} - #{@faults.size})"</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-
|
|
148
|
-
<a name="
|
|
152
|
+
<div id="method-M000068" class="method-detail">
|
|
153
|
+
<a name="M000068"></a>
|
|
149
154
|
|
|
150
155
|
<div class="method-heading">
|
|
151
|
-
<a href="#
|
|
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('
|
|
159
|
-
<div class="method-source-code" id="
|
|
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
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
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">"Finished in #{elapsed_time} seconds."</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">"%3d) %s"</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-
|
|
178
|
-
<a name="
|
|
182
|
+
<div id="method-M000076" class="method-detail">
|
|
183
|
+
<a name="M000076"></a>
|
|
179
184
|
|
|
180
185
|
<div class="method-heading">
|
|
181
|
-
<a href="#
|
|
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('
|
|
189
|
-
<div class="method-source-code" id="
|
|
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
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
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">" "</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-
|
|
202
|
-
<a name="
|
|
206
|
+
<div id="method-M000074" class="method-detail">
|
|
207
|
+
<a name="M000074"></a>
|
|
203
208
|
|
|
204
209
|
<div class="method-heading">
|
|
205
|
-
<a href="#
|
|
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('
|
|
213
|
-
<div class="method-source-code" id="
|
|
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
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
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">"#{@prefix}#{heading}"</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-
|
|
225
|
-
<a name="
|
|
229
|
+
<div id="method-M000073" class="method-detail">
|
|
230
|
+
<a name="M000073"></a>
|
|
226
231
|
|
|
227
232
|
<div class="method-heading">
|
|
228
|
-
<a href="#
|
|
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('
|
|
236
|
-
<div class="method-source-code" id="
|
|
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
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
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">"#{@prefix}- #{item}"</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-
|
|
248
|
-
<a name="
|
|
252
|
+
<div id="method-M000072" class="method-detail">
|
|
253
|
+
<a name="M000072"></a>
|
|
249
254
|
|
|
250
255
|
<div class="method-heading">
|
|
251
|
-
<a href="#
|
|
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('
|
|
259
|
-
<div class="method-source-code" id="
|
|
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
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
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-
|
|
272
|
-
<a name="
|
|
276
|
+
<div id="method-M000069" class="method-detail">
|
|
277
|
+
<a name="M000069"></a>
|
|
273
278
|
|
|
274
279
|
<div class="method-heading">
|
|
275
|
-
<a href="#
|
|
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('
|
|
283
|
-
<div class="method-source-code" id="
|
|
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
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
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">></span> <span class="ruby-value">0</span>
|
|
293
|
+
43: <span class="ruby-identifier">disabled</span> = <span class="ruby-node">", #{@disabled} disabled"</span>
|
|
294
|
+
44: <span class="ruby-keyword kw">else</span>
|
|
295
|
+
45: <span class="ruby-identifier">disabled</span> = <span class="ruby-value str">""</span>
|
|
296
|
+
46: <span class="ruby-keyword kw">end</span>
|
|
297
|
+
47:
|
|
298
|
+
48: <span class="ruby-identifier">r</span> = <span class="ruby-node">"%d specifications#{disabled} (%d requirements), %d failures"</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"><<</span> <span class="ruby-node">", #{@result.error_count} errors"</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">></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-
|
|
298
|
-
<a name="
|
|
308
|
+
<div id="method-M000065" class="method-detail">
|
|
309
|
+
<a name="M000065"></a>
|
|
299
310
|
|
|
300
311
|
<div class="method-heading">
|
|
301
|
-
<a href="#
|
|
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('
|
|
309
|
-
<div class="method-source-code" id="
|
|
319
|
+
onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
|
|
320
|
+
<div class="method-source-code" id="M000065-source">
|
|
310
321
|
<pre>
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
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-
|
|
325
|
-
<a name="
|
|
331
|
+
<div id="method-M000067" class="method-detail">
|
|
332
|
+
<a name="M000067"></a>
|
|
326
333
|
|
|
327
334
|
<div class="method-heading">
|
|
328
|
-
<a href="#
|
|
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('
|
|
336
|
-
<div class="method-source-code" id="
|
|
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
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
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-
|
|
351
|
-
<a name="
|
|
358
|
+
<div id="method-M000071" class="method-detail">
|
|
359
|
+
<a name="M000071"></a>
|
|
352
360
|
|
|
353
361
|
<div class="method-heading">
|
|
354
|
-
<a href="#
|
|
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('
|
|
362
|
-
<div class="method-source-code" id="
|
|
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
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
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-
|
|
375
|
-
<a name="
|
|
382
|
+
<div id="method-M000070" class="method-detail">
|
|
383
|
+
<a name="M000070"></a>
|
|
376
384
|
|
|
377
385
|
<div class="method-heading">
|
|
378
|
-
<a href="#
|
|
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('
|
|
386
|
-
<div class="method-source-code" id="
|
|
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
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
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">"\t"</span>)
|
|
406
406
|
63:
|
|
407
|
-
64: <span class="ruby-
|
|
408
|
-
65:
|
|
409
|
-
66: <span class="ruby-identifier">
|
|
410
|
-
67:
|
|
411
|
-
68:
|
|
412
|
-
69:
|
|
413
|
-
70:
|
|
414
|
-
71:
|
|
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-
|
|
421
|
-
<a name="
|
|
428
|
+
<div id="method-M000075" class="method-detail">
|
|
429
|
+
<a name="M000075"></a>
|
|
422
430
|
|
|
423
431
|
<div class="method-heading">
|
|
424
|
-
<a href="#
|
|
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('
|
|
432
|
-
<div class="method-source-code" id="
|
|
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
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
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>
|