mofo 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. data/CHANGELOG +4 -0
  2. data/lib/microformat.rb +11 -1
  3. data/lib/microformat/simple.rb +21 -17
  4. data/lib/mofo/hentry.rb +1 -1
  5. data/lib/mofo/hreview.rb +0 -2
  6. data/lib/mofo/rel_tag.rb +0 -1
  7. data/tests/fixtures/bob.html +69 -0
  8. data/tests/fixtures/chowhound.html +1052 -0
  9. data/tests/fixtures/corkd.html +403 -0
  10. data/tests/fixtures/events.html +39 -0
  11. data/tests/fixtures/fake.html +1 -0
  12. data/tests/fixtures/fauxtank.html +535 -0
  13. data/tests/fixtures/hatom.html +1101 -0
  14. data/tests/fixtures/simple.html +5 -0
  15. data/tests/fixtures/upcoming.html +335 -0
  16. data/tests/format_test.rb +230 -0
  17. data/tests/hatom_test.rb +39 -0
  18. data/tests/test_helper.rb +6 -0
  19. data/tests/xoxo_test.rb +49 -0
  20. data/vendor/testspec-0.2.0/ChangeLog +120 -0
  21. data/vendor/testspec-0.2.0/README +206 -0
  22. data/vendor/testspec-0.2.0/ROADMAP +3 -0
  23. data/vendor/testspec-0.2.0/Rakefile +86 -0
  24. data/vendor/testspec-0.2.0/SPECS +101 -0
  25. data/vendor/testspec-0.2.0/TODO +1 -0
  26. data/vendor/testspec-0.2.0/bin/specrb +103 -0
  27. data/vendor/testspec-0.2.0/examples/stack.rb +38 -0
  28. data/vendor/testspec-0.2.0/examples/stack_spec.rb +119 -0
  29. data/vendor/testspec-0.2.0/lib/test/spec.rb +366 -0
  30. data/vendor/testspec-0.2.0/lib/test/spec/dox.rb +114 -0
  31. data/vendor/testspec-0.2.0/lib/test/spec/rdox.rb +25 -0
  32. data/vendor/testspec-0.2.0/lib/test/spec/should-output.rb +48 -0
  33. data/vendor/testspec-0.2.0/rdoc/classes/Kernel.html +105 -0
  34. data/vendor/testspec-0.2.0/rdoc/classes/Object.html +154 -0
  35. data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec.html +132 -0
  36. data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec/DefinitionError.html +111 -0
  37. data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec/Should.html +863 -0
  38. data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec/ShouldNot.html +411 -0
  39. data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec/TestCase.html +220 -0
  40. data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec/TestCase/ClassMethods.html +290 -0
  41. data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec/TestCase/InstanceMethods.html +195 -0
  42. data/vendor/testspec-0.2.0/rdoc/classes/Test/Unit/UI/RDox/TestRunner.html +222 -0
  43. data/vendor/testspec-0.2.0/rdoc/classes/Test/Unit/UI/SpecDox/TestRunner.html +468 -0
  44. data/vendor/testspec-0.2.0/rdoc/created.rid +1 -0
  45. data/vendor/testspec-0.2.0/rdoc/files/README.html +409 -0
  46. data/vendor/testspec-0.2.0/rdoc/files/ROADMAP.html +112 -0
  47. data/vendor/testspec-0.2.0/rdoc/files/SPECS.html +365 -0
  48. data/vendor/testspec-0.2.0/rdoc/files/lib/test/spec/dox_rb.html +108 -0
  49. data/vendor/testspec-0.2.0/rdoc/files/lib/test/spec/rdox_rb.html +108 -0
  50. data/vendor/testspec-0.2.0/rdoc/files/lib/test/spec/should-output_rb.html +114 -0
  51. data/vendor/testspec-0.2.0/rdoc/files/lib/test/spec_rb.html +123 -0
  52. data/vendor/testspec-0.2.0/rdoc/fr_class_index.html +37 -0
  53. data/vendor/testspec-0.2.0/rdoc/fr_file_index.html +33 -0
  54. data/vendor/testspec-0.2.0/rdoc/fr_method_index.html +95 -0
  55. data/vendor/testspec-0.2.0/rdoc/index.html +24 -0
  56. data/vendor/testspec-0.2.0/rdoc/rdoc-style.css +208 -0
  57. data/vendor/testspec-0.2.0/test/spec_dox.rb +39 -0
  58. data/vendor/testspec-0.2.0/test/spec_flexmock.rb +210 -0
  59. data/vendor/testspec-0.2.0/test/spec_mocha.rb +118 -0
  60. data/vendor/testspec-0.2.0/test/spec_nestedcontexts.rb +26 -0
  61. data/vendor/testspec-0.2.0/test/spec_should-output.rb +26 -0
  62. data/vendor/testspec-0.2.0/test/spec_testspec.rb +311 -0
  63. data/vendor/testspec-0.2.0/test/spec_testspec_order.rb +26 -0
  64. data/vendor/testspec-0.2.0/test/test_testunit.rb +21 -0
  65. metadata +81 -2
@@ -0,0 +1,290 @@
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::ClassMethods</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::ClassMethods</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="#M000004">context</a>&nbsp;&nbsp;
84
+ <a href="#M000008">init</a>&nbsp;&nbsp;
85
+ <a href="#M000006">setup</a>&nbsp;&nbsp;
86
+ <a href="#M000005">specify</a>&nbsp;&nbsp;
87
+ <a href="#M000007">teardown</a>&nbsp;&nbsp;
88
+ </div>
89
+ </div>
90
+
91
+ </div>
92
+
93
+
94
+ <!-- if includes -->
95
+
96
+ <div id="section">
97
+
98
+
99
+
100
+
101
+
102
+ <div id="attribute-list">
103
+ <h3 class="section-bar">Attributes</h3>
104
+
105
+ <div class="name-list">
106
+ <table>
107
+ <tr class="top-aligned-row context-row">
108
+ <td class="context-item-name">count</td>
109
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
110
+ <td class="context-item-desc"></td>
111
+ </tr>
112
+ <tr class="top-aligned-row context-row">
113
+ <td class="context-item-name">name</td>
114
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
115
+ <td class="context-item-desc"></td>
116
+ </tr>
117
+ <tr class="top-aligned-row context-row">
118
+ <td class="context-item-name">parent</td>
119
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
120
+ <td class="context-item-desc"></td>
121
+ </tr>
122
+ <tr class="top-aligned-row context-row">
123
+ <td class="context-item-name">position</td>
124
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
125
+ <td class="context-item-desc"></td>
126
+ </tr>
127
+ <tr class="top-aligned-row context-row">
128
+ <td class="context-item-name">setups</td>
129
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
130
+ <td class="context-item-desc"></td>
131
+ </tr>
132
+ <tr class="top-aligned-row context-row">
133
+ <td class="context-item-name">teardowns</td>
134
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
135
+ <td class="context-item-desc"></td>
136
+ </tr>
137
+ </table>
138
+ </div>
139
+ </div>
140
+
141
+
142
+
143
+ <!-- if method_list -->
144
+ <div id="methods">
145
+ <h3 class="section-bar">Public Instance methods</h3>
146
+
147
+ <div id="method-M000004" class="method-detail">
148
+ <a name="M000004"></a>
149
+
150
+ <div class="method-heading">
151
+ <a href="#M000004" class="method-signature">
152
+ <span class="method-name">context</span><span class="method-args">(name, &amp;block)</span>
153
+ </a>
154
+ </div>
155
+
156
+ <div class="method-description">
157
+ <p><a class="source-toggle" href="#"
158
+ onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
159
+ <div class="method-source-code" id="M000004-source">
160
+ <pre>
161
+ <span class="ruby-comment cmt"># File lib/test/spec.rb, line 268</span>
162
+ 268: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">context</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
163
+ 269: (<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">&quot;\t&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">name</span>] <span class="ruby-operator">||=</span>
164
+ 270: <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">&amp;</span><span class="ruby-identifier">block</span>)
165
+ 271: <span class="ruby-keyword kw">end</span>
166
+ </pre>
167
+ </div>
168
+ </div>
169
+ </div>
170
+
171
+ <div id="method-M000008" class="method-detail">
172
+ <a name="M000008"></a>
173
+
174
+ <div class="method-heading">
175
+ <a href="#M000008" class="method-signature">
176
+ <span class="method-name">init</span><span class="method-args">(name, position, parent)</span>
177
+ </a>
178
+ </div>
179
+
180
+ <div class="method-description">
181
+ <p><a class="source-toggle" href="#"
182
+ onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
183
+ <div class="method-source-code" id="M000008-source">
184
+ <pre>
185
+ <span class="ruby-comment cmt"># File lib/test/spec.rb, line 289</span>
186
+ 289: <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>)
187
+ 290: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">position</span> = <span class="ruby-identifier">position</span>
188
+ 291: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parent</span> = <span class="ruby-identifier">parent</span>
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">&quot;\t&quot;</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>
200
+ </pre>
201
+ </div>
202
+ </div>
203
+ </div>
204
+
205
+ <div id="method-M000006" class="method-detail">
206
+ <a name="M000006"></a>
207
+
208
+ <div class="method-heading">
209
+ <a href="#M000006" class="method-signature">
210
+ <span class="method-name">setup</span><span class="method-args">(&amp;block)</span>
211
+ </a>
212
+ </div>
213
+
214
+ <div class="method-description">
215
+ <p><a class="source-toggle" href="#"
216
+ onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
217
+ <div class="method-source-code" id="M000006-source">
218
+ <pre>
219
+ <span class="ruby-comment cmt"># File lib/test/spec.rb, line 281</span>
220
+ 281: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
221
+ 282: <span class="ruby-identifier">setups</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">block</span>
222
+ 283: <span class="ruby-keyword kw">end</span>
223
+ </pre>
224
+ </div>
225
+ </div>
226
+ </div>
227
+
228
+ <div id="method-M000005" class="method-detail">
229
+ <a name="M000005"></a>
230
+
231
+ <div class="method-heading">
232
+ <a href="#M000005" class="method-signature">
233
+ <span class="method-name">specify</span><span class="method-args">(specname, &amp;block)</span>
234
+ </a>
235
+ </div>
236
+
237
+ <div class="method-description">
238
+ <p><a class="source-toggle" href="#"
239
+ onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
240
+ <div class="method-source-code" id="M000005-source">
241
+ <pre>
242
+ <span class="ruby-comment cmt"># File lib/test/spec.rb, line 273</span>
243
+ 273: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">specify</span>(<span class="ruby-identifier">specname</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
244
+ 274: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">&quot;specify needs a block&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>.<span class="ruby-identifier">nil?</span>
245
+ 275:
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">&quot;test_spec {%s} %03d [%s]&quot;</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">&amp;</span><span class="ruby-identifier">block</span>)
249
+ 279: <span class="ruby-keyword kw">end</span>
250
+ </pre>
251
+ </div>
252
+ </div>
253
+ </div>
254
+
255
+ <div id="method-M000007" class="method-detail">
256
+ <a name="M000007"></a>
257
+
258
+ <div class="method-heading">
259
+ <a href="#M000007" class="method-signature">
260
+ <span class="method-name">teardown</span><span class="method-args">(&amp;block)</span>
261
+ </a>
262
+ </div>
263
+
264
+ <div class="method-description">
265
+ <p><a class="source-toggle" href="#"
266
+ onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
267
+ <div class="method-source-code" id="M000007-source">
268
+ <pre>
269
+ <span class="ruby-comment cmt"># File lib/test/spec.rb, line 285</span>
270
+ 285: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">teardown</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
271
+ 286: <span class="ruby-identifier">teardowns</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">block</span>
272
+ 287: <span class="ruby-keyword kw">end</span>
273
+ </pre>
274
+ </div>
275
+ </div>
276
+ </div>
277
+
278
+
279
+ </div>
280
+
281
+
282
+ </div>
283
+
284
+
285
+ <div id="validator-badges">
286
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
287
+ </div>
288
+
289
+ </body>
290
+ </html>
@@ -0,0 +1,195 @@
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="#M000011">context</a>&nbsp;&nbsp;
84
+ <a href="#M000009">new</a>&nbsp;&nbsp;
85
+ <a href="#M000010">position</a>&nbsp;&nbsp;
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-M000009" class="method-detail">
108
+ <a name="M000009"></a>
109
+
110
+ <div class="method-heading">
111
+ <a href="#M000009" 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('M000009-source');return false;">[Source]</a></p>
119
+ <div class="method-source-code" id="M000009-source">
120
+ <pre>
121
+ <span class="ruby-comment cmt"># File lib/test/spec.rb, line 241</span>
122
+ 241: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>)
123
+ 242: <span class="ruby-keyword kw">super</span> <span class="ruby-identifier">name</span>
124
+ 243:
125
+ 244: <span class="ruby-comment cmt"># Don't let the default_test clutter up the results and don't</span>
126
+ 245: <span class="ruby-comment cmt"># flunk if no tests given, either.</span>
127
+ 246: <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
+ 247: <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-M000011" class="method-detail">
137
+ <a name="M000011"></a>
138
+
139
+ <div class="method-heading">
140
+ <a href="#M000011" 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('M000011-source');return false;">[Source]</a></p>
148
+ <div class="method-source-code" id="M000011-source">
149
+ <pre>
150
+ <span class="ruby-comment cmt"># File lib/test/spec.rb, line 253</span>
151
+ 253: <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
+ 254: <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
+ 255: <span class="ruby-value str">&quot;context definition is not allowed inside a specify-block&quot;</span>
154
+ 256: <span class="ruby-keyword kw">end</span>
155
+ </pre>
156
+ </div>
157
+ </div>
158
+ </div>
159
+
160
+ <div id="method-M000010" class="method-detail">
161
+ <a name="M000010"></a>
162
+
163
+ <div class="method-heading">
164
+ <a href="#M000010" 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('M000010-source');return false;">[Source]</a></p>
172
+ <div class="method-source-code" id="M000010-source">
173
+ <pre>
174
+ <span class="ruby-comment cmt"># File lib/test/spec.rb, line 249</span>
175
+ 249: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">position</span>
176
+ 250: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">position</span>
177
+ 251: <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>