mofo 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +6 -0
- data/Manifest.txt +55 -0
- data/Rakefile +32 -0
- data/init.rb +2 -0
- data/lib/microformat.rb +39 -6
- data/lib/mofo/hentry.rb +4 -0
- data/site/index.html +382 -0
- data/site/mofo-logo.png +0 -0
- data/site/mootools.v1.00.js +2 -0
- data/site/style.css +159 -0
- data/test/base_url_test.rb +22 -0
- data/test/fixtures/corkd.html +1 -1
- data/test/hatom_test.rb +1 -1
- data/test/hreview_test.rb +4 -3
- data/test/include_pattern_test.rb +1 -1
- data/test/test_helper.rb +17 -6
- metadata +63 -115
- data/test/format_test.rb +0 -230
- data/vendor/testspec-0.3.0/ChangeLog +0 -177
- data/vendor/testspec-0.3.0/README +0 -289
- data/vendor/testspec-0.3.0/ROADMAP +0 -1
- data/vendor/testspec-0.3.0/Rakefile +0 -151
- data/vendor/testspec-0.3.0/SPECS +0 -108
- data/vendor/testspec-0.3.0/TODO +0 -2
- data/vendor/testspec-0.3.0/bin/specrb +0 -104
- data/vendor/testspec-0.3.0/doc/classes/Kernel.html +0 -140
- data/vendor/testspec-0.3.0/doc/classes/Object.html +0 -155
- data/vendor/testspec-0.3.0/doc/classes/Test/Spec.html +0 -128
- data/vendor/testspec-0.3.0/doc/classes/Test/Spec/CustomShould.html +0 -236
- data/vendor/testspec-0.3.0/doc/classes/Test/Spec/DefinitionError.html +0 -111
- data/vendor/testspec-0.3.0/doc/classes/Test/Spec/Should.html +0 -884
- data/vendor/testspec-0.3.0/doc/classes/Test/Spec/ShouldNot.html +0 -487
- data/vendor/testspec-0.3.0/doc/classes/Test/Spec/TestCase.html +0 -220
- data/vendor/testspec-0.3.0/doc/classes/Test/Spec/TestCase/ClassMethods.html +0 -318
- data/vendor/testspec-0.3.0/doc/classes/Test/Spec/TestCase/InstanceMethods.html +0 -195
- data/vendor/testspec-0.3.0/doc/classes/Test/Unit/UI/RDox/TestRunner.html +0 -222
- data/vendor/testspec-0.3.0/doc/classes/Test/Unit/UI/SpecDox/TestRunner.html +0 -476
- data/vendor/testspec-0.3.0/doc/created.rid +0 -1
- data/vendor/testspec-0.3.0/doc/files/README.html +0 -516
- data/vendor/testspec-0.3.0/doc/files/ROADMAP.html +0 -109
- data/vendor/testspec-0.3.0/doc/files/SPECS.html +0 -386
- data/vendor/testspec-0.3.0/doc/files/lib/test/spec/dox_rb.html +0 -108
- data/vendor/testspec-0.3.0/doc/files/lib/test/spec/rdox_rb.html +0 -108
- data/vendor/testspec-0.3.0/doc/files/lib/test/spec/should-output_rb.html +0 -115
- data/vendor/testspec-0.3.0/doc/files/lib/test/spec_rb.html +0 -123
- data/vendor/testspec-0.3.0/doc/fr_class_index.html +0 -38
- data/vendor/testspec-0.3.0/doc/fr_file_index.html +0 -33
- data/vendor/testspec-0.3.0/doc/fr_method_index.html +0 -102
- data/vendor/testspec-0.3.0/doc/index.html +0 -24
- data/vendor/testspec-0.3.0/doc/rdoc-style.css +0 -208
- data/vendor/testspec-0.3.0/examples/stack.rb +0 -38
- data/vendor/testspec-0.3.0/examples/stack_spec.rb +0 -119
- data/vendor/testspec-0.3.0/lib/test/spec.rb +0 -490
- data/vendor/testspec-0.3.0/lib/test/spec/dox.rb +0 -122
- data/vendor/testspec-0.3.0/lib/test/spec/rdox.rb +0 -25
- data/vendor/testspec-0.3.0/lib/test/spec/should-output.rb +0 -49
- data/vendor/testspec-0.3.0/test/spec_dox.rb +0 -39
- data/vendor/testspec-0.3.0/test/spec_flexmock.rb +0 -210
- data/vendor/testspec-0.3.0/test/spec_mocha.rb +0 -118
- data/vendor/testspec-0.3.0/test/spec_nestedcontexts.rb +0 -26
- data/vendor/testspec-0.3.0/test/spec_should-output.rb +0 -26
- data/vendor/testspec-0.3.0/test/spec_testspec.rb +0 -522
- data/vendor/testspec-0.3.0/test/spec_testspec_order.rb +0 -26
- data/vendor/testspec-0.3.0/test/test_testunit.rb +0 -21
@@ -1,195 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Module: Test::Spec::TestCase::InstanceMethods</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">Test::Spec::TestCase::InstanceMethods</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../../files/lib/test/spec_rb.html">
|
59
|
-
lib/test/spec.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
</table>
|
66
|
-
</div>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<div id="contextContent">
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
</div>
|
78
|
-
|
79
|
-
<div id="method-list">
|
80
|
-
<h3 class="section-bar">Methods</h3>
|
81
|
-
|
82
|
-
<div class="name-list">
|
83
|
-
<a href="#M000013">context</a>
|
84
|
-
<a href="#M000011">new</a>
|
85
|
-
<a href="#M000012">position</a>
|
86
|
-
</div>
|
87
|
-
</div>
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
|
92
|
-
<!-- if includes -->
|
93
|
-
|
94
|
-
<div id="section">
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
<!-- if method_list -->
|
104
|
-
<div id="methods">
|
105
|
-
<h3 class="section-bar">Public Class methods</h3>
|
106
|
-
|
107
|
-
<div id="method-M000011" class="method-detail">
|
108
|
-
<a name="M000011"></a>
|
109
|
-
|
110
|
-
<div class="method-heading">
|
111
|
-
<a href="#M000011" class="method-signature">
|
112
|
-
<span class="method-name">new</span><span class="method-args">(name)</span>
|
113
|
-
</a>
|
114
|
-
</div>
|
115
|
-
|
116
|
-
<div class="method-description">
|
117
|
-
<p><a class="source-toggle" href="#"
|
118
|
-
onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
|
119
|
-
<div class="method-source-code" id="M000011-source">
|
120
|
-
<pre>
|
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
|
-
</pre>
|
130
|
-
</div>
|
131
|
-
</div>
|
132
|
-
</div>
|
133
|
-
|
134
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
135
|
-
|
136
|
-
<div id="method-M000013" class="method-detail">
|
137
|
-
<a name="M000013"></a>
|
138
|
-
|
139
|
-
<div class="method-heading">
|
140
|
-
<a href="#M000013" class="method-signature">
|
141
|
-
<span class="method-name">context</span><span class="method-args">(*args)</span>
|
142
|
-
</a>
|
143
|
-
</div>
|
144
|
-
|
145
|
-
<div class="method-description">
|
146
|
-
<p><a class="source-toggle" href="#"
|
147
|
-
onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
|
148
|
-
<div class="method-source-code" id="M000013-source">
|
149
|
-
<pre>
|
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
|
-
</pre>
|
156
|
-
</div>
|
157
|
-
</div>
|
158
|
-
</div>
|
159
|
-
|
160
|
-
<div id="method-M000012" class="method-detail">
|
161
|
-
<a name="M000012"></a>
|
162
|
-
|
163
|
-
<div class="method-heading">
|
164
|
-
<a href="#M000012" class="method-signature">
|
165
|
-
<span class="method-name">position</span><span class="method-args">()</span>
|
166
|
-
</a>
|
167
|
-
</div>
|
168
|
-
|
169
|
-
<div class="method-description">
|
170
|
-
<p><a class="source-toggle" href="#"
|
171
|
-
onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
|
172
|
-
<div class="method-source-code" id="M000012-source">
|
173
|
-
<pre>
|
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
|
-
</pre>
|
179
|
-
</div>
|
180
|
-
</div>
|
181
|
-
</div>
|
182
|
-
|
183
|
-
|
184
|
-
</div>
|
185
|
-
|
186
|
-
|
187
|
-
</div>
|
188
|
-
|
189
|
-
|
190
|
-
<div id="validator-badges">
|
191
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
192
|
-
</div>
|
193
|
-
|
194
|
-
</body>
|
195
|
-
</html>
|
@@ -1,222 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Test::Unit::UI::RDox::TestRunner</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Test::Unit::UI::RDox::TestRunner</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../../../files/lib/test/spec/rdox_rb.html">
|
59
|
-
lib/test/spec/rdox.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
<a href="../SpecDox/TestRunner.html">
|
69
|
-
Test::Unit::UI::SpecDox::TestRunner
|
70
|
-
</a>
|
71
|
-
</td>
|
72
|
-
</tr>
|
73
|
-
</table>
|
74
|
-
</div>
|
75
|
-
<!-- banner header -->
|
76
|
-
|
77
|
-
<div id="bodyContent">
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<div id="contextContent">
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
</div>
|
86
|
-
|
87
|
-
<div id="method-list">
|
88
|
-
<h3 class="section-bar">Methods</h3>
|
89
|
-
|
90
|
-
<div class="name-list">
|
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
|
-
</div>
|
96
|
-
</div>
|
97
|
-
|
98
|
-
</div>
|
99
|
-
|
100
|
-
|
101
|
-
<!-- if includes -->
|
102
|
-
|
103
|
-
<div id="section">
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
<!-- if method_list -->
|
113
|
-
<div id="methods">
|
114
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
115
|
-
|
116
|
-
<div id="method-M000063" class="method-detail">
|
117
|
-
<a name="M000063"></a>
|
118
|
-
|
119
|
-
<div class="method-heading">
|
120
|
-
<a href="#M000063" class="method-signature">
|
121
|
-
<span class="method-name">finished</span><span class="method-args">(elapsed_time)</span>
|
122
|
-
</a>
|
123
|
-
</div>
|
124
|
-
|
125
|
-
<div class="method-description">
|
126
|
-
<p><a class="source-toggle" href="#"
|
127
|
-
onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
|
128
|
-
<div class="method-source-code" id="M000063-source">
|
129
|
-
<pre>
|
130
|
-
<span class="ruby-comment cmt"># File lib/test/spec/rdox.rb, line 14</span>
|
131
|
-
14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">finished</span>(<span class="ruby-identifier">elapsed_time</span>)
|
132
|
-
15: <span class="ruby-identifier">nl</span>
|
133
|
-
16: <span class="ruby-identifier">output_result</span>
|
134
|
-
17: <span class="ruby-keyword kw">end</span>
|
135
|
-
</pre>
|
136
|
-
</div>
|
137
|
-
</div>
|
138
|
-
</div>
|
139
|
-
|
140
|
-
<div id="method-M000064" class="method-detail">
|
141
|
-
<a name="M000064"></a>
|
142
|
-
|
143
|
-
<div class="method-heading">
|
144
|
-
<a href="#M000064" class="method-signature">
|
145
|
-
<span class="method-name">indent</span><span class="method-args">(depth)</span>
|
146
|
-
</a>
|
147
|
-
</div>
|
148
|
-
|
149
|
-
<div class="method-description">
|
150
|
-
<p><a class="source-toggle" href="#"
|
151
|
-
onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
|
152
|
-
<div class="method-source-code" id="M000064-source">
|
153
|
-
<pre>
|
154
|
-
<span class="ruby-comment cmt"># File lib/test/spec/rdox.rb, line 19</span>
|
155
|
-
19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">depth</span>)
|
156
|
-
20: <span class="ruby-ivar">@prefix</span> = <span class="ruby-value str">""</span>
|
157
|
-
21: <span class="ruby-ivar">@headprefix</span> = <span class="ruby-value str">"=="</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"="</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">depth</span>
|
158
|
-
22: <span class="ruby-keyword kw">end</span>
|
159
|
-
</pre>
|
160
|
-
</div>
|
161
|
-
</div>
|
162
|
-
</div>
|
163
|
-
|
164
|
-
<div id="method-M000061" class="method-detail">
|
165
|
-
<a name="M000061"></a>
|
166
|
-
|
167
|
-
<div class="method-heading">
|
168
|
-
<a href="#M000061" class="method-signature">
|
169
|
-
<span class="method-name">output_heading</span><span class="method-args">(heading)</span>
|
170
|
-
</a>
|
171
|
-
</div>
|
172
|
-
|
173
|
-
<div class="method-description">
|
174
|
-
<p><a class="source-toggle" href="#"
|
175
|
-
onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
|
176
|
-
<div class="method-source-code" id="M000061-source">
|
177
|
-
<pre>
|
178
|
-
<span class="ruby-comment cmt"># File lib/test/spec/rdox.rb, line 6</span>
|
179
|
-
6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_heading</span>(<span class="ruby-identifier">heading</span>)
|
180
|
-
7: <span class="ruby-identifier">output</span> <span class="ruby-node">"#{@headprefix} #{heading}"</span>
|
181
|
-
8: <span class="ruby-keyword kw">end</span>
|
182
|
-
</pre>
|
183
|
-
</div>
|
184
|
-
</div>
|
185
|
-
</div>
|
186
|
-
|
187
|
-
<div id="method-M000062" class="method-detail">
|
188
|
-
<a name="M000062"></a>
|
189
|
-
|
190
|
-
<div class="method-heading">
|
191
|
-
<a href="#M000062" class="method-signature">
|
192
|
-
<span class="method-name">output_item</span><span class="method-args">(item)</span>
|
193
|
-
</a>
|
194
|
-
</div>
|
195
|
-
|
196
|
-
<div class="method-description">
|
197
|
-
<p><a class="source-toggle" href="#"
|
198
|
-
onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
|
199
|
-
<div class="method-source-code" id="M000062-source">
|
200
|
-
<pre>
|
201
|
-
<span class="ruby-comment cmt"># File lib/test/spec/rdox.rb, line 10</span>
|
202
|
-
10: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_item</span>(<span class="ruby-identifier">item</span>)
|
203
|
-
11: <span class="ruby-identifier">output_no_nl</span> <span class="ruby-node">"* #{item}"</span>
|
204
|
-
12: <span class="ruby-keyword kw">end</span>
|
205
|
-
</pre>
|
206
|
-
</div>
|
207
|
-
</div>
|
208
|
-
</div>
|
209
|
-
|
210
|
-
|
211
|
-
</div>
|
212
|
-
|
213
|
-
|
214
|
-
</div>
|
215
|
-
|
216
|
-
|
217
|
-
<div id="validator-badges">
|
218
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
219
|
-
</div>
|
220
|
-
|
221
|
-
</body>
|
222
|
-
</html>
|
@@ -1,476 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Test::Unit::UI::SpecDox::TestRunner</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Test::Unit::UI::SpecDox::TestRunner</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../../../files/lib/test/spec/dox_rb.html">
|
59
|
-
lib/test/spec/dox.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
Test::Unit::UI::Console::TestRunner
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
</div>
|
84
|
-
|
85
|
-
<div id="method-list">
|
86
|
-
<h3 class="section-bar">Methods</h3>
|
87
|
-
|
88
|
-
<div class="name-list">
|
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
|
-
</div>
|
102
|
-
</div>
|
103
|
-
|
104
|
-
</div>
|
105
|
-
|
106
|
-
|
107
|
-
<!-- if includes -->
|
108
|
-
|
109
|
-
<div id="section">
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
<!-- if method_list -->
|
119
|
-
<div id="methods">
|
120
|
-
<h3 class="section-bar">Protected Instance methods</h3>
|
121
|
-
|
122
|
-
<div id="method-M000066" class="method-detail">
|
123
|
-
<a name="M000066"></a>
|
124
|
-
|
125
|
-
<div class="method-heading">
|
126
|
-
<a href="#M000066" class="method-signature">
|
127
|
-
<span class="method-name">add_fault</span><span class="method-args">(fault)</span>
|
128
|
-
</a>
|
129
|
-
</div>
|
130
|
-
|
131
|
-
<div class="method-description">
|
132
|
-
<p><a class="source-toggle" href="#"
|
133
|
-
onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
|
134
|
-
<div class="method-source-code" id="M000066-source">
|
135
|
-
<pre>
|
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>
|
147
|
-
</pre>
|
148
|
-
</div>
|
149
|
-
</div>
|
150
|
-
</div>
|
151
|
-
|
152
|
-
<div id="method-M000068" class="method-detail">
|
153
|
-
<a name="M000068"></a>
|
154
|
-
|
155
|
-
<div class="method-heading">
|
156
|
-
<a href="#M000068" class="method-signature">
|
157
|
-
<span class="method-name">finished</span><span class="method-args">(elapsed_time)</span>
|
158
|
-
</a>
|
159
|
-
</div>
|
160
|
-
|
161
|
-
<div class="method-description">
|
162
|
-
<p><a class="source-toggle" href="#"
|
163
|
-
onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
|
164
|
-
<div class="method-source-code" id="M000068-source">
|
165
|
-
<pre>
|
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>
|
177
|
-
</pre>
|
178
|
-
</div>
|
179
|
-
</div>
|
180
|
-
</div>
|
181
|
-
|
182
|
-
<div id="method-M000076" class="method-detail">
|
183
|
-
<a name="M000076"></a>
|
184
|
-
|
185
|
-
<div class="method-heading">
|
186
|
-
<a href="#M000076" class="method-signature">
|
187
|
-
<span class="method-name">indent</span><span class="method-args">(depth)</span>
|
188
|
-
</a>
|
189
|
-
</div>
|
190
|
-
|
191
|
-
<div class="method-description">
|
192
|
-
<p><a class="source-toggle" href="#"
|
193
|
-
onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
|
194
|
-
<div class="method-source-code" id="M000076-source">
|
195
|
-
<pre>
|
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>
|
201
|
-
</pre>
|
202
|
-
</div>
|
203
|
-
</div>
|
204
|
-
</div>
|
205
|
-
|
206
|
-
<div id="method-M000074" class="method-detail">
|
207
|
-
<a name="M000074"></a>
|
208
|
-
|
209
|
-
<div class="method-heading">
|
210
|
-
<a href="#M000074" class="method-signature">
|
211
|
-
<span class="method-name">output_heading</span><span class="method-args">(heading)</span>
|
212
|
-
</a>
|
213
|
-
</div>
|
214
|
-
|
215
|
-
<div class="method-description">
|
216
|
-
<p><a class="source-toggle" href="#"
|
217
|
-
onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
|
218
|
-
<div class="method-source-code" id="M000074-source">
|
219
|
-
<pre>
|
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>
|
224
|
-
</pre>
|
225
|
-
</div>
|
226
|
-
</div>
|
227
|
-
</div>
|
228
|
-
|
229
|
-
<div id="method-M000073" class="method-detail">
|
230
|
-
<a name="M000073"></a>
|
231
|
-
|
232
|
-
<div class="method-heading">
|
233
|
-
<a href="#M000073" class="method-signature">
|
234
|
-
<span class="method-name">output_item</span><span class="method-args">(item)</span>
|
235
|
-
</a>
|
236
|
-
</div>
|
237
|
-
|
238
|
-
<div class="method-description">
|
239
|
-
<p><a class="source-toggle" href="#"
|
240
|
-
onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
|
241
|
-
<div class="method-source-code" id="M000073-source">
|
242
|
-
<pre>
|
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>
|
247
|
-
</pre>
|
248
|
-
</div>
|
249
|
-
</div>
|
250
|
-
</div>
|
251
|
-
|
252
|
-
<div id="method-M000072" class="method-detail">
|
253
|
-
<a name="M000072"></a>
|
254
|
-
|
255
|
-
<div class="method-heading">
|
256
|
-
<a href="#M000072" class="method-signature">
|
257
|
-
<span class="method-name">output_no_nl</span><span class="method-args">(something, level=NORMAL)</span>
|
258
|
-
</a>
|
259
|
-
</div>
|
260
|
-
|
261
|
-
<div class="method-description">
|
262
|
-
<p><a class="source-toggle" href="#"
|
263
|
-
onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
|
264
|
-
<div class="method-source-code" id="M000072-source">
|
265
|
-
<pre>
|
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>
|
271
|
-
</pre>
|
272
|
-
</div>
|
273
|
-
</div>
|
274
|
-
</div>
|
275
|
-
|
276
|
-
<div id="method-M000069" class="method-detail">
|
277
|
-
<a name="M000069"></a>
|
278
|
-
|
279
|
-
<div class="method-heading">
|
280
|
-
<a href="#M000069" class="method-signature">
|
281
|
-
<span class="method-name">output_result</span><span class="method-args">()</span>
|
282
|
-
</a>
|
283
|
-
</div>
|
284
|
-
|
285
|
-
<div class="method-description">
|
286
|
-
<p><a class="source-toggle" href="#"
|
287
|
-
onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
|
288
|
-
<div class="method-source-code" id="M000069-source">
|
289
|
-
<pre>
|
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>
|
303
|
-
</pre>
|
304
|
-
</div>
|
305
|
-
</div>
|
306
|
-
</div>
|
307
|
-
|
308
|
-
<div id="method-M000065" class="method-detail">
|
309
|
-
<a name="M000065"></a>
|
310
|
-
|
311
|
-
<div class="method-heading">
|
312
|
-
<a href="#M000065" class="method-signature">
|
313
|
-
<span class="method-name">setup_mediator</span><span class="method-args">()</span>
|
314
|
-
</a>
|
315
|
-
</div>
|
316
|
-
|
317
|
-
<div class="method-description">
|
318
|
-
<p><a class="source-toggle" href="#"
|
319
|
-
onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
|
320
|
-
<div class="method-source-code" id="M000065-source">
|
321
|
-
<pre>
|
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>
|
326
|
-
</pre>
|
327
|
-
</div>
|
328
|
-
</div>
|
329
|
-
</div>
|
330
|
-
|
331
|
-
<div id="method-M000067" class="method-detail">
|
332
|
-
<a name="M000067"></a>
|
333
|
-
|
334
|
-
<div class="method-heading">
|
335
|
-
<a href="#M000067" class="method-signature">
|
336
|
-
<span class="method-name">started</span><span class="method-args">(result)</span>
|
337
|
-
</a>
|
338
|
-
</div>
|
339
|
-
|
340
|
-
<div class="method-description">
|
341
|
-
<p><a class="source-toggle" href="#"
|
342
|
-
onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
|
343
|
-
<div class="method-source-code" id="M000067-source">
|
344
|
-
<pre>
|
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>
|
353
|
-
</pre>
|
354
|
-
</div>
|
355
|
-
</div>
|
356
|
-
</div>
|
357
|
-
|
358
|
-
<div id="method-M000071" class="method-detail">
|
359
|
-
<a name="M000071"></a>
|
360
|
-
|
361
|
-
<div class="method-heading">
|
362
|
-
<a href="#M000071" class="method-signature">
|
363
|
-
<span class="method-name">test_finished</span><span class="method-args">(name)</span>
|
364
|
-
</a>
|
365
|
-
</div>
|
366
|
-
|
367
|
-
<div class="method-description">
|
368
|
-
<p><a class="source-toggle" href="#"
|
369
|
-
onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
|
370
|
-
<div class="method-source-code" id="M000071-source">
|
371
|
-
<pre>
|
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>
|
377
|
-
</pre>
|
378
|
-
</div>
|
379
|
-
</div>
|
380
|
-
</div>
|
381
|
-
|
382
|
-
<div id="method-M000070" class="method-detail">
|
383
|
-
<a name="M000070"></a>
|
384
|
-
|
385
|
-
<div class="method-heading">
|
386
|
-
<a href="#M000070" class="method-signature">
|
387
|
-
<span class="method-name">test_started</span><span class="method-args">(name)</span>
|
388
|
-
</a>
|
389
|
-
</div>
|
390
|
-
|
391
|
-
<div class="method-description">
|
392
|
-
<p><a class="source-toggle" href="#"
|
393
|
-
onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
|
394
|
-
<div class="method-source-code" id="M000070-source">
|
395
|
-
<pre>
|
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
|
-
63:
|
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>
|
423
|
-
</pre>
|
424
|
-
</div>
|
425
|
-
</div>
|
426
|
-
</div>
|
427
|
-
|
428
|
-
<div id="method-M000075" class="method-detail">
|
429
|
-
<a name="M000075"></a>
|
430
|
-
|
431
|
-
<div class="method-heading">
|
432
|
-
<a href="#M000075" class="method-signature">
|
433
|
-
<span class="method-name">unmangle</span><span class="method-args">(name)</span>
|
434
|
-
</a>
|
435
|
-
</div>
|
436
|
-
|
437
|
-
<div class="method-description">
|
438
|
-
<p><a class="source-toggle" href="#"
|
439
|
-
onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
|
440
|
-
<div class="method-source-code" id="M000075-source">
|
441
|
-
<pre>
|
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>
|
459
|
-
</pre>
|
460
|
-
</div>
|
461
|
-
</div>
|
462
|
-
</div>
|
463
|
-
|
464
|
-
|
465
|
-
</div>
|
466
|
-
|
467
|
-
|
468
|
-
</div>
|
469
|
-
|
470
|
-
|
471
|
-
<div id="validator-badges">
|
472
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
473
|
-
</div>
|
474
|
-
|
475
|
-
</body>
|
476
|
-
</html>
|