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
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
|
89
89
|
|
|
90
90
|
<div class="name-list">
|
|
91
|
-
<a href="#
|
|
92
|
-
<a href="#
|
|
91
|
+
<a href="#M000004">add</a>
|
|
92
|
+
<a href="#M000003">new</a>
|
|
93
93
|
</div>
|
|
94
94
|
</div>
|
|
95
95
|
|
|
@@ -148,30 +148,30 @@ Module <a href="TestCase/InstanceMethods.html" class="link">Test::Spec::TestCase
|
|
|
148
148
|
<div id="methods">
|
|
149
149
|
<h3 class="section-bar">Public Class methods</h3>
|
|
150
150
|
|
|
151
|
-
<div id="method-
|
|
152
|
-
<a name="
|
|
151
|
+
<div id="method-M000003" class="method-detail">
|
|
152
|
+
<a name="M000003"></a>
|
|
153
153
|
|
|
154
154
|
<div class="method-heading">
|
|
155
|
-
<a href="#
|
|
155
|
+
<a href="#M000003" class="method-signature">
|
|
156
156
|
<span class="method-name">new</span><span class="method-args">(name, parent=nil)</span>
|
|
157
157
|
</a>
|
|
158
158
|
</div>
|
|
159
159
|
|
|
160
160
|
<div class="method-description">
|
|
161
161
|
<p><a class="source-toggle" href="#"
|
|
162
|
-
onclick="toggleCode('
|
|
163
|
-
<div class="method-source-code" id="
|
|
162
|
+
onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
|
|
163
|
+
<div class="method-source-code" id="M000003-source">
|
|
164
164
|
<pre>
|
|
165
|
-
<span class="ruby-comment cmt"># File lib/test/spec.rb, line
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
165
|
+
<span class="ruby-comment cmt"># File lib/test/spec.rb, line 397</span>
|
|
166
|
+
397: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">parent</span>=<span class="ruby-keyword kw">nil</span>)
|
|
167
|
+
398: <span class="ruby-ivar">@testcase</span> = <span class="ruby-constant">Class</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">Test</span><span class="ruby-operator">::</span><span class="ruby-constant">Unit</span><span class="ruby-operator">::</span><span class="ruby-constant">TestCase</span>) {
|
|
168
|
+
399: <span class="ruby-identifier">include</span> <span class="ruby-constant">InstanceMethods</span>
|
|
169
|
+
400: <span class="ruby-identifier">extend</span> <span class="ruby-constant">ClassMethods</span>
|
|
170
|
+
401: }
|
|
171
|
+
402:
|
|
172
|
+
403: <span class="ruby-ivar">@@POSITION</span> = <span class="ruby-ivar">@@POSITION</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>
|
|
173
|
+
404: <span class="ruby-ivar">@testcase</span>.<span class="ruby-identifier">init</span>(<span class="ruby-identifier">name</span>, <span class="ruby-ivar">@@POSITION</span>, <span class="ruby-identifier">parent</span>)
|
|
174
|
+
405: <span class="ruby-keyword kw">end</span>
|
|
175
175
|
</pre>
|
|
176
176
|
</div>
|
|
177
177
|
</div>
|
|
@@ -179,27 +179,27 @@ Module <a href="TestCase/InstanceMethods.html" class="link">Test::Spec::TestCase
|
|
|
179
179
|
|
|
180
180
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
181
181
|
|
|
182
|
-
<div id="method-
|
|
183
|
-
<a name="
|
|
182
|
+
<div id="method-M000004" class="method-detail">
|
|
183
|
+
<a name="M000004"></a>
|
|
184
184
|
|
|
185
185
|
<div class="method-heading">
|
|
186
|
-
<a href="#
|
|
186
|
+
<a href="#M000004" class="method-signature">
|
|
187
187
|
<span class="method-name">add</span><span class="method-args">(&block)</span>
|
|
188
188
|
</a>
|
|
189
189
|
</div>
|
|
190
190
|
|
|
191
191
|
<div class="method-description">
|
|
192
192
|
<p><a class="source-toggle" href="#"
|
|
193
|
-
onclick="toggleCode('
|
|
194
|
-
<div class="method-source-code" id="
|
|
193
|
+
onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
|
|
194
|
+
<div class="method-source-code" id="M000004-source">
|
|
195
195
|
<pre>
|
|
196
|
-
<span class="ruby-comment cmt"># File lib/test/spec.rb, line
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
196
|
+
<span class="ruby-comment cmt"># File lib/test/spec.rb, line 407</span>
|
|
197
|
+
407: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
|
198
|
+
408: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"context needs a block"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>.<span class="ruby-identifier">nil?</span>
|
|
199
|
+
409:
|
|
200
|
+
410: <span class="ruby-ivar">@testcase</span>.<span class="ruby-identifier">class_eval</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
|
201
|
+
411: <span class="ruby-keyword kw">self</span>
|
|
202
|
+
412: <span class="ruby-keyword kw">end</span>
|
|
203
203
|
</pre>
|
|
204
204
|
</div>
|
|
205
205
|
</div>
|
data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Spec/TestCase/ClassMethods.html
RENAMED
|
@@ -80,11 +80,12 @@
|
|
|
80
80
|
<h3 class="section-bar">Methods</h3>
|
|
81
81
|
|
|
82
82
|
<div class="name-list">
|
|
83
|
-
<a href="#
|
|
84
|
-
<a href="#
|
|
85
|
-
<a href="#
|
|
86
|
-
<a href="#
|
|
87
|
-
<a href="#
|
|
83
|
+
<a href="#M000005">context</a>
|
|
84
|
+
<a href="#M000010">init</a>
|
|
85
|
+
<a href="#M000008">setup</a>
|
|
86
|
+
<a href="#M000006">specify</a>
|
|
87
|
+
<a href="#M000009">teardown</a>
|
|
88
|
+
<a href="#M000007">xspecify</a>
|
|
88
89
|
</div>
|
|
89
90
|
</div>
|
|
90
91
|
|
|
@@ -144,25 +145,59 @@
|
|
|
144
145
|
<div id="methods">
|
|
145
146
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
146
147
|
|
|
147
|
-
<div id="method-
|
|
148
|
-
<a name="
|
|
148
|
+
<div id="method-M000005" class="method-detail">
|
|
149
|
+
<a name="M000005"></a>
|
|
149
150
|
|
|
150
151
|
<div class="method-heading">
|
|
151
|
-
<a href="#
|
|
152
|
+
<a href="#M000005" class="method-signature">
|
|
152
153
|
<span class="method-name">context</span><span class="method-args">(name, &block)</span>
|
|
153
154
|
</a>
|
|
154
155
|
</div>
|
|
155
156
|
|
|
156
157
|
<div class="method-description">
|
|
157
158
|
<p><a class="source-toggle" href="#"
|
|
158
|
-
onclick="toggleCode('
|
|
159
|
-
<div class="method-source-code" id="
|
|
159
|
+
onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
|
|
160
|
+
<div class="method-source-code" id="M000005-source">
|
|
160
161
|
<pre>
|
|
161
|
-
<span class="ruby-comment cmt"># File lib/test/spec.rb, line
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
<span class="ruby-comment cmt"># File lib/test/spec.rb, line 350</span>
|
|
163
|
+
350: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">context</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
|
164
|
+
351: (<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">CONTEXTS</span>[<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"\t"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">name</span>] <span class="ruby-operator">||=</span>
|
|
165
|
+
352: <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">TestCase</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">name</span>, <span class="ruby-keyword kw">self</span>)).<span class="ruby-identifier">add</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
|
166
|
+
353: <span class="ruby-keyword kw">end</span>
|
|
167
|
+
</pre>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
<div id="method-M000010" class="method-detail">
|
|
173
|
+
<a name="M000010"></a>
|
|
174
|
+
|
|
175
|
+
<div class="method-heading">
|
|
176
|
+
<a href="#M000010" class="method-signature">
|
|
177
|
+
<span class="method-name">init</span><span class="method-args">(name, position, parent)</span>
|
|
178
|
+
</a>
|
|
179
|
+
</div>
|
|
180
|
+
|
|
181
|
+
<div class="method-description">
|
|
182
|
+
<p><a class="source-toggle" href="#"
|
|
183
|
+
onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
|
|
184
|
+
<div class="method-source-code" id="M000010-source">
|
|
185
|
+
<pre>
|
|
186
|
+
<span class="ruby-comment cmt"># File lib/test/spec.rb, line 379</span>
|
|
187
|
+
379: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">position</span>, <span class="ruby-identifier">parent</span>)
|
|
188
|
+
380: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">position</span> = <span class="ruby-identifier">position</span>
|
|
189
|
+
381: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parent</span> = <span class="ruby-identifier">parent</span>
|
|
190
|
+
382:
|
|
191
|
+
383: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span>
|
|
192
|
+
384: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">name</span> = <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"\t"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">name</span>
|
|
193
|
+
385: <span class="ruby-keyword kw">else</span>
|
|
194
|
+
386: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">name</span> = <span class="ruby-identifier">name</span>
|
|
195
|
+
387: <span class="ruby-keyword kw">end</span>
|
|
196
|
+
388:
|
|
197
|
+
389: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">count</span> = <span class="ruby-value">0</span>
|
|
198
|
+
390: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">setups</span> = []
|
|
199
|
+
391: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">teardowns</span> = []
|
|
200
|
+
392: <span class="ruby-keyword kw">end</span>
|
|
166
201
|
</pre>
|
|
167
202
|
</div>
|
|
168
203
|
</div>
|
|
@@ -173,7 +208,7 @@
|
|
|
173
208
|
|
|
174
209
|
<div class="method-heading">
|
|
175
210
|
<a href="#M000008" class="method-signature">
|
|
176
|
-
<span class="method-name">
|
|
211
|
+
<span class="method-name">setup</span><span class="method-args">(&block)</span>
|
|
177
212
|
</a>
|
|
178
213
|
</div>
|
|
179
214
|
|
|
@@ -182,21 +217,10 @@
|
|
|
182
217
|
onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
|
|
183
218
|
<div class="method-source-code" id="M000008-source">
|
|
184
219
|
<pre>
|
|
185
|
-
<span class="ruby-comment cmt"># File lib/test/spec.rb, line
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
292:
|
|
190
|
-
293: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span>
|
|
191
|
-
294: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">name</span> = <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"\t"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">name</span>
|
|
192
|
-
295: <span class="ruby-keyword kw">else</span>
|
|
193
|
-
296: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">name</span> = <span class="ruby-identifier">name</span>
|
|
194
|
-
297: <span class="ruby-keyword kw">end</span>
|
|
195
|
-
298:
|
|
196
|
-
299: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">count</span> = <span class="ruby-value">0</span>
|
|
197
|
-
300: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">setups</span> = []
|
|
198
|
-
301: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">teardowns</span> = []
|
|
199
|
-
302: <span class="ruby-keyword kw">end</span>
|
|
220
|
+
<span class="ruby-comment cmt"># File lib/test/spec.rb, line 371</span>
|
|
221
|
+
371: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
|
222
|
+
372: <span class="ruby-identifier">setups</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">block</span>
|
|
223
|
+
373: <span class="ruby-keyword kw">end</span>
|
|
200
224
|
</pre>
|
|
201
225
|
</div>
|
|
202
226
|
</div>
|
|
@@ -207,7 +231,7 @@
|
|
|
207
231
|
|
|
208
232
|
<div class="method-heading">
|
|
209
233
|
<a href="#M000006" class="method-signature">
|
|
210
|
-
<span class="method-name">
|
|
234
|
+
<span class="method-name">specify</span><span class="method-args">(specname, &block)</span>
|
|
211
235
|
</a>
|
|
212
236
|
</div>
|
|
213
237
|
|
|
@@ -216,37 +240,37 @@
|
|
|
216
240
|
onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
|
|
217
241
|
<div class="method-source-code" id="M000006-source">
|
|
218
242
|
<pre>
|
|
219
|
-
<span class="ruby-comment cmt"># File lib/test/spec.rb, line
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
243
|
+
<span class="ruby-comment cmt"># File lib/test/spec.rb, line 355</span>
|
|
244
|
+
355: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">specify</span>(<span class="ruby-identifier">specname</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
|
245
|
+
356: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"specify needs a block"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>.<span class="ruby-identifier">nil?</span>
|
|
246
|
+
357:
|
|
247
|
+
358: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">count</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> <span class="ruby-comment cmt"># Let them run in order of definition</span>
|
|
248
|
+
359:
|
|
249
|
+
360: <span class="ruby-identifier">define_method</span>(<span class="ruby-value str">"test_spec {%s} %03d [%s]"</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">name</span>, <span class="ruby-identifier">count</span>, <span class="ruby-identifier">specname</span>], <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
|
250
|
+
361: <span class="ruby-keyword kw">end</span>
|
|
223
251
|
</pre>
|
|
224
252
|
</div>
|
|
225
253
|
</div>
|
|
226
254
|
</div>
|
|
227
255
|
|
|
228
|
-
<div id="method-
|
|
229
|
-
<a name="
|
|
256
|
+
<div id="method-M000009" class="method-detail">
|
|
257
|
+
<a name="M000009"></a>
|
|
230
258
|
|
|
231
259
|
<div class="method-heading">
|
|
232
|
-
<a href="#
|
|
233
|
-
<span class="method-name">
|
|
260
|
+
<a href="#M000009" class="method-signature">
|
|
261
|
+
<span class="method-name">teardown</span><span class="method-args">(&block)</span>
|
|
234
262
|
</a>
|
|
235
263
|
</div>
|
|
236
264
|
|
|
237
265
|
<div class="method-description">
|
|
238
266
|
<p><a class="source-toggle" href="#"
|
|
239
|
-
onclick="toggleCode('
|
|
240
|
-
<div class="method-source-code" id="
|
|
267
|
+
onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
|
|
268
|
+
<div class="method-source-code" id="M000009-source">
|
|
241
269
|
<pre>
|
|
242
|
-
<span class="ruby-comment cmt"># File lib/test/spec.rb, line
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
276: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">count</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> <span class="ruby-comment cmt"># Let them run in order of definition</span>
|
|
247
|
-
277:
|
|
248
|
-
278: <span class="ruby-identifier">define_method</span>(<span class="ruby-value str">"test_spec {%s} %03d [%s]"</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">name</span>, <span class="ruby-identifier">count</span>, <span class="ruby-identifier">specname</span>], <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
|
249
|
-
279: <span class="ruby-keyword kw">end</span>
|
|
270
|
+
<span class="ruby-comment cmt"># File lib/test/spec.rb, line 375</span>
|
|
271
|
+
375: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">teardown</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
|
272
|
+
376: <span class="ruby-identifier">teardowns</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">block</span>
|
|
273
|
+
377: <span class="ruby-keyword kw">end</span>
|
|
250
274
|
</pre>
|
|
251
275
|
</div>
|
|
252
276
|
</div>
|
|
@@ -257,7 +281,7 @@
|
|
|
257
281
|
|
|
258
282
|
<div class="method-heading">
|
|
259
283
|
<a href="#M000007" class="method-signature">
|
|
260
|
-
<span class="method-name">
|
|
284
|
+
<span class="method-name">xspecify</span><span class="method-args">(specname, &block)</span>
|
|
261
285
|
</a>
|
|
262
286
|
</div>
|
|
263
287
|
|
|
@@ -266,10 +290,14 @@
|
|
|
266
290
|
onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
|
|
267
291
|
<div class="method-source-code" id="M000007-source">
|
|
268
292
|
<pre>
|
|
269
|
-
<span class="ruby-comment cmt"># File lib/test/spec.rb, line
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
293
|
+
<span class="ruby-comment cmt"># File lib/test/spec.rb, line 363</span>
|
|
294
|
+
363: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">xspecify</span>(<span class="ruby-identifier">specname</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
|
295
|
+
364: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"xspecify needs a block"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>.<span class="ruby-identifier">nil?</span>
|
|
296
|
+
365:
|
|
297
|
+
366: <span class="ruby-identifier">specify</span> <span class="ruby-identifier">specname</span> <span class="ruby-keyword kw">do</span>
|
|
298
|
+
367: <span class="ruby-ivar">@_result</span>.<span class="ruby-identifier">add_disabled</span>(<span class="ruby-identifier">specname</span>)
|
|
299
|
+
368: <span class="ruby-keyword kw">end</span>
|
|
300
|
+
369: <span class="ruby-keyword kw">end</span>
|
|
273
301
|
</pre>
|
|
274
302
|
</div>
|
|
275
303
|
</div>
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
<h3 class="section-bar">Methods</h3>
|
|
81
81
|
|
|
82
82
|
<div class="name-list">
|
|
83
|
-
<a href="#
|
|
84
|
-
<a href="#
|
|
85
|
-
<a href="#
|
|
83
|
+
<a href="#M000013">context</a>
|
|
84
|
+
<a href="#M000011">new</a>
|
|
85
|
+
<a href="#M000012">position</a>
|
|
86
86
|
</div>
|
|
87
87
|
</div>
|
|
88
88
|
|
|
@@ -104,28 +104,28 @@
|
|
|
104
104
|
<div id="methods">
|
|
105
105
|
<h3 class="section-bar">Public Class methods</h3>
|
|
106
106
|
|
|
107
|
-
<div id="method-
|
|
108
|
-
<a name="
|
|
107
|
+
<div id="method-M000011" class="method-detail">
|
|
108
|
+
<a name="M000011"></a>
|
|
109
109
|
|
|
110
110
|
<div class="method-heading">
|
|
111
|
-
<a href="#
|
|
111
|
+
<a href="#M000011" class="method-signature">
|
|
112
112
|
<span class="method-name">new</span><span class="method-args">(name)</span>
|
|
113
113
|
</a>
|
|
114
114
|
</div>
|
|
115
115
|
|
|
116
116
|
<div class="method-description">
|
|
117
117
|
<p><a class="source-toggle" href="#"
|
|
118
|
-
onclick="toggleCode('
|
|
119
|
-
<div class="method-source-code" id="
|
|
118
|
+
onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
|
|
119
|
+
<div class="method-source-code" id="M000011-source">
|
|
120
120
|
<pre>
|
|
121
|
-
<span class="ruby-comment cmt"># File lib/test/spec.rb, line
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
121
|
+
<span class="ruby-comment cmt"># File lib/test/spec.rb, line 323</span>
|
|
122
|
+
323: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>)
|
|
123
|
+
324: <span class="ruby-keyword kw">super</span> <span class="ruby-identifier">name</span>
|
|
124
|
+
325:
|
|
125
|
+
326: <span class="ruby-comment cmt"># Don't let the default_test clutter up the results and don't</span>
|
|
126
|
+
327: <span class="ruby-comment cmt"># flunk if no tests given, either.</span>
|
|
127
|
+
328: <span class="ruby-identifier">throw</span> <span class="ruby-identifier">:invalid_test</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:default_test</span>
|
|
128
|
+
329: <span class="ruby-keyword kw">end</span>
|
|
129
129
|
</pre>
|
|
130
130
|
</div>
|
|
131
131
|
</div>
|
|
@@ -133,48 +133,48 @@
|
|
|
133
133
|
|
|
134
134
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
135
135
|
|
|
136
|
-
<div id="method-
|
|
137
|
-
<a name="
|
|
136
|
+
<div id="method-M000013" class="method-detail">
|
|
137
|
+
<a name="M000013"></a>
|
|
138
138
|
|
|
139
139
|
<div class="method-heading">
|
|
140
|
-
<a href="#
|
|
140
|
+
<a href="#M000013" class="method-signature">
|
|
141
141
|
<span class="method-name">context</span><span class="method-args">(*args)</span>
|
|
142
142
|
</a>
|
|
143
143
|
</div>
|
|
144
144
|
|
|
145
145
|
<div class="method-description">
|
|
146
146
|
<p><a class="source-toggle" href="#"
|
|
147
|
-
onclick="toggleCode('
|
|
148
|
-
<div class="method-source-code" id="
|
|
147
|
+
onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
|
|
148
|
+
<div class="method-source-code" id="M000013-source">
|
|
149
149
|
<pre>
|
|
150
|
-
<span class="ruby-comment cmt"># File lib/test/spec.rb, line
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
150
|
+
<span class="ruby-comment cmt"># File lib/test/spec.rb, line 335</span>
|
|
151
|
+
335: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">context</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
|
152
|
+
336: <span class="ruby-identifier">raise</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">DefinitionError</span>,
|
|
153
|
+
337: <span class="ruby-value str">"context definition is not allowed inside a specify-block"</span>
|
|
154
|
+
338: <span class="ruby-keyword kw">end</span>
|
|
155
155
|
</pre>
|
|
156
156
|
</div>
|
|
157
157
|
</div>
|
|
158
158
|
</div>
|
|
159
159
|
|
|
160
|
-
<div id="method-
|
|
161
|
-
<a name="
|
|
160
|
+
<div id="method-M000012" class="method-detail">
|
|
161
|
+
<a name="M000012"></a>
|
|
162
162
|
|
|
163
163
|
<div class="method-heading">
|
|
164
|
-
<a href="#
|
|
164
|
+
<a href="#M000012" class="method-signature">
|
|
165
165
|
<span class="method-name">position</span><span class="method-args">()</span>
|
|
166
166
|
</a>
|
|
167
167
|
</div>
|
|
168
168
|
|
|
169
169
|
<div class="method-description">
|
|
170
170
|
<p><a class="source-toggle" href="#"
|
|
171
|
-
onclick="toggleCode('
|
|
172
|
-
<div class="method-source-code" id="
|
|
171
|
+
onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
|
|
172
|
+
<div class="method-source-code" id="M000012-source">
|
|
173
173
|
<pre>
|
|
174
|
-
<span class="ruby-comment cmt"># File lib/test/spec.rb, line
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
174
|
+
<span class="ruby-comment cmt"># File lib/test/spec.rb, line 331</span>
|
|
175
|
+
331: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">position</span>
|
|
176
|
+
332: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">position</span>
|
|
177
|
+
333: <span class="ruby-keyword kw">end</span>
|
|
178
178
|
</pre>
|
|
179
179
|
</div>
|
|
180
180
|
</div>
|
data/vendor/{testspec-0.2.0/rdoc → testspec-0.3.0/doc}/classes/Test/Unit/UI/RDox/TestRunner.html
RENAMED
|
@@ -88,10 +88,10 @@
|
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
|
89
89
|
|
|
90
90
|
<div class="name-list">
|
|
91
|
-
<a href="#
|
|
92
|
-
<a href="#
|
|
93
|
-
<a href="#
|
|
94
|
-
<a href="#
|
|
91
|
+
<a href="#M000063">finished</a>
|
|
92
|
+
<a href="#M000064">indent</a>
|
|
93
|
+
<a href="#M000061">output_heading</a>
|
|
94
|
+
<a href="#M000062">output_item</a>
|
|
95
95
|
</div>
|
|
96
96
|
</div>
|
|
97
97
|
|
|
@@ -113,19 +113,19 @@
|
|
|
113
113
|
<div id="methods">
|
|
114
114
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
115
115
|
|
|
116
|
-
<div id="method-
|
|
117
|
-
<a name="
|
|
116
|
+
<div id="method-M000063" class="method-detail">
|
|
117
|
+
<a name="M000063"></a>
|
|
118
118
|
|
|
119
119
|
<div class="method-heading">
|
|
120
|
-
<a href="#
|
|
120
|
+
<a href="#M000063" class="method-signature">
|
|
121
121
|
<span class="method-name">finished</span><span class="method-args">(elapsed_time)</span>
|
|
122
122
|
</a>
|
|
123
123
|
</div>
|
|
124
124
|
|
|
125
125
|
<div class="method-description">
|
|
126
126
|
<p><a class="source-toggle" href="#"
|
|
127
|
-
onclick="toggleCode('
|
|
128
|
-
<div class="method-source-code" id="
|
|
127
|
+
onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
|
|
128
|
+
<div class="method-source-code" id="M000063-source">
|
|
129
129
|
<pre>
|
|
130
130
|
<span class="ruby-comment cmt"># File lib/test/spec/rdox.rb, line 14</span>
|
|
131
131
|
14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">finished</span>(<span class="ruby-identifier">elapsed_time</span>)
|
|
@@ -137,19 +137,19 @@
|
|
|
137
137
|
</div>
|
|
138
138
|
</div>
|
|
139
139
|
|
|
140
|
-
<div id="method-
|
|
141
|
-
<a name="
|
|
140
|
+
<div id="method-M000064" class="method-detail">
|
|
141
|
+
<a name="M000064"></a>
|
|
142
142
|
|
|
143
143
|
<div class="method-heading">
|
|
144
|
-
<a href="#
|
|
144
|
+
<a href="#M000064" class="method-signature">
|
|
145
145
|
<span class="method-name">indent</span><span class="method-args">(depth)</span>
|
|
146
146
|
</a>
|
|
147
147
|
</div>
|
|
148
148
|
|
|
149
149
|
<div class="method-description">
|
|
150
150
|
<p><a class="source-toggle" href="#"
|
|
151
|
-
onclick="toggleCode('
|
|
152
|
-
<div class="method-source-code" id="
|
|
151
|
+
onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
|
|
152
|
+
<div class="method-source-code" id="M000064-source">
|
|
153
153
|
<pre>
|
|
154
154
|
<span class="ruby-comment cmt"># File lib/test/spec/rdox.rb, line 19</span>
|
|
155
155
|
19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">depth</span>)
|
|
@@ -161,19 +161,19 @@
|
|
|
161
161
|
</div>
|
|
162
162
|
</div>
|
|
163
163
|
|
|
164
|
-
<div id="method-
|
|
165
|
-
<a name="
|
|
164
|
+
<div id="method-M000061" class="method-detail">
|
|
165
|
+
<a name="M000061"></a>
|
|
166
166
|
|
|
167
167
|
<div class="method-heading">
|
|
168
|
-
<a href="#
|
|
168
|
+
<a href="#M000061" class="method-signature">
|
|
169
169
|
<span class="method-name">output_heading</span><span class="method-args">(heading)</span>
|
|
170
170
|
</a>
|
|
171
171
|
</div>
|
|
172
172
|
|
|
173
173
|
<div class="method-description">
|
|
174
174
|
<p><a class="source-toggle" href="#"
|
|
175
|
-
onclick="toggleCode('
|
|
176
|
-
<div class="method-source-code" id="
|
|
175
|
+
onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
|
|
176
|
+
<div class="method-source-code" id="M000061-source">
|
|
177
177
|
<pre>
|
|
178
178
|
<span class="ruby-comment cmt"># File lib/test/spec/rdox.rb, line 6</span>
|
|
179
179
|
6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_heading</span>(<span class="ruby-identifier">heading</span>)
|
|
@@ -184,19 +184,19 @@
|
|
|
184
184
|
</div>
|
|
185
185
|
</div>
|
|
186
186
|
|
|
187
|
-
<div id="method-
|
|
188
|
-
<a name="
|
|
187
|
+
<div id="method-M000062" class="method-detail">
|
|
188
|
+
<a name="M000062"></a>
|
|
189
189
|
|
|
190
190
|
<div class="method-heading">
|
|
191
|
-
<a href="#
|
|
191
|
+
<a href="#M000062" class="method-signature">
|
|
192
192
|
<span class="method-name">output_item</span><span class="method-args">(item)</span>
|
|
193
193
|
</a>
|
|
194
194
|
</div>
|
|
195
195
|
|
|
196
196
|
<div class="method-description">
|
|
197
197
|
<p><a class="source-toggle" href="#"
|
|
198
|
-
onclick="toggleCode('
|
|
199
|
-
<div class="method-source-code" id="
|
|
198
|
+
onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
|
|
199
|
+
<div class="method-source-code" id="M000062-source">
|
|
200
200
|
<pre>
|
|
201
201
|
<span class="ruby-comment cmt"># File lib/test/spec/rdox.rb, line 10</span>
|
|
202
202
|
10: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_item</span>(<span class="ruby-identifier">item</span>)
|