timecop-rspec 1.0.1 → 1.0.3

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.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/CHANGELOG.md +36 -2
  4. data/CONTRIBUTING.md +1 -3
  5. data/README.md +39 -13
  6. data/checksums/timecop-rspec-1.0.2.gem.sha256 +1 -0
  7. data/checksums/timecop-rspec-1.0.2.gem.sha512 +1 -0
  8. data/checksums/timecop-rspec-1.0.3.gem.sha256 +1 -0
  9. data/checksums/timecop-rspec-1.0.3.gem.sha512 +1 -0
  10. data/lib/timecop/rspec/version.rb +1 -1
  11. data.tar.gz.sig +2 -1
  12. metadata +53 -140
  13. metadata.gz.sig +0 -0
  14. data/.devcontainer/devcontainer.json +0 -26
  15. data/.env.local.example +0 -3
  16. data/.envrc +0 -41
  17. data/.github/FUNDING.yml +0 -13
  18. data/.github/dependabot.yml +0 -12
  19. data/.github/workflows/ancient.yml +0 -77
  20. data/.github/workflows/auto-assign.yml +0 -21
  21. data/.github/workflows/codeql-analysis.yml +0 -70
  22. data/.github/workflows/coverage.yml +0 -126
  23. data/.github/workflows/current.yml +0 -85
  24. data/.github/workflows/dependency-review.yml +0 -20
  25. data/.github/workflows/deps_locked.yml +0 -75
  26. data/.github/workflows/deps_unlocked.yml +0 -84
  27. data/.github/workflows/discord-notifier.yml +0 -38
  28. data/.github/workflows/heads.yml +0 -84
  29. data/.github/workflows/jruby.yml +0 -75
  30. data/.github/workflows/legacy.yml +0 -67
  31. data/.github/workflows/style.yml +0 -64
  32. data/.github/workflows/supported.yml +0 -82
  33. data/.github/workflows/truffle.yml +0 -75
  34. data/.github/workflows/unsupported.yml +0 -75
  35. data/.gitignore +0 -45
  36. data/.gitlab-ci.yml +0 -44
  37. data/.idea/.gitignore +0 -8
  38. data/.idea/GitLink.xml +0 -6
  39. data/.idea/misc.xml +0 -4
  40. data/.idea/modules.xml +0 -8
  41. data/.idea/timecop-rspec.iml +0 -122
  42. data/.idea/vcs.xml +0 -6
  43. data/.junie/TASK_NOTE.md +0 -1
  44. data/.junie/guidelines.md +0 -139
  45. data/.qlty/qlty.toml +0 -79
  46. data/.rspec +0 -8
  47. data/.rubocop.yml +0 -15
  48. data/.rubocop_gradual.lock +0 -76
  49. data/.simplecov +0 -11
  50. data/.tool-versions +0 -1
  51. data/.yard_gfm_support.rb +0 -22
  52. data/.yardopts +0 -11
  53. data/Appraisal.root.gemfile +0 -12
  54. data/Appraisals +0 -104
  55. data/CNAME +0 -1
  56. data/Gemfile +0 -38
  57. data/Gemfile.lock +0 -293
  58. data/Rakefile +0 -287
  59. data/bin/appraisal +0 -16
  60. data/bin/bundle-audit +0 -16
  61. data/bin/bundler-audit +0 -16
  62. data/bin/code_climate_reek +0 -16
  63. data/bin/coderay +0 -16
  64. data/bin/console +0 -12
  65. data/bin/erb +0 -16
  66. data/bin/gem_checksums +0 -16
  67. data/bin/htmldiff +0 -16
  68. data/bin/irb +0 -16
  69. data/bin/kramdown +0 -16
  70. data/bin/ldiff +0 -16
  71. data/bin/nokogiri +0 -16
  72. data/bin/pry +0 -16
  73. data/bin/racc +0 -16
  74. data/bin/rake +0 -16
  75. data/bin/rdbg +0 -16
  76. data/bin/rdoc +0 -16
  77. data/bin/reek +0 -16
  78. data/bin/ri +0 -16
  79. data/bin/rspec +0 -16
  80. data/bin/rubocop +0 -16
  81. data/bin/rubocop-gradual +0 -16
  82. data/bin/ruby-parse +0 -16
  83. data/bin/ruby-rewrite +0 -16
  84. data/bin/setup +0 -7
  85. data/bin/standardrb +0 -16
  86. data/bin/thor +0 -16
  87. data/bin/yard +0 -16
  88. data/bin/yard-junk +0 -16
  89. data/bin/yardoc +0 -16
  90. data/bin/yri +0 -16
  91. data/certs/pboling.pem +0 -27
  92. data/docs/Timecop/Rspec/ExampleDecorator.html +0 -626
  93. data/docs/Timecop/Rspec/SequentialTimeMachine.html +0 -338
  94. data/docs/Timecop/Rspec/TimeMachine.html +0 -357
  95. data/docs/Timecop/Rspec/TravelLog.html +0 -440
  96. data/docs/Timecop/Rspec/Traveler.html +0 -353
  97. data/docs/Timecop/Rspec/Version.html +0 -154
  98. data/docs/Timecop/Rspec.html +0 -476
  99. data/docs/Timecop.html +0 -143
  100. data/docs/_index.html +0 -224
  101. data/docs/class_list.html +0 -54
  102. data/docs/css/common.css +0 -1
  103. data/docs/css/full_list.css +0 -58
  104. data/docs/css/style.css +0 -503
  105. data/docs/file.CHANGELOG.html +0 -110
  106. data/docs/file.CITATION.html +0 -92
  107. data/docs/file.CODE_OF_CONDUCT.html +0 -201
  108. data/docs/file.CONTRIBUTING.html +0 -220
  109. data/docs/file.LICENSE.html +0 -70
  110. data/docs/file.README.html +0 -531
  111. data/docs/file.REEK.html +0 -71
  112. data/docs/file.RUBOCOP.html +0 -171
  113. data/docs/file.SECURITY.html +0 -101
  114. data/docs/file.rspec.html +0 -109
  115. data/docs/file.timecop-rspec-1.0.0.gem.html +0 -71
  116. data/docs/file.timecop.html +0 -72
  117. data/docs/file_list.html +0 -119
  118. data/docs/frames.html +0 -22
  119. data/docs/index.html +0 -531
  120. data/docs/js/app.js +0 -344
  121. data/docs/js/full_list.js +0 -242
  122. data/docs/js/jquery.js +0 -4
  123. data/docs/method_list.html +0 -198
  124. data/docs/top-level-namespace.html +0 -110
  125. data/gemfiles/audit.gemfile +0 -10
  126. data/gemfiles/coverage.gemfile +0 -10
  127. data/gemfiles/current.gemfile +0 -8
  128. data/gemfiles/deps_unlocked.gemfile +0 -13
  129. data/gemfiles/head.gemfile +0 -9
  130. data/gemfiles/modular/audit.gemfile +0 -5
  131. data/gemfiles/modular/coverage.gemfile +0 -6
  132. data/gemfiles/modular/documentation.gemfile +0 -11
  133. data/gemfiles/modular/style.gemfile +0 -14
  134. data/gemfiles/ruby_2_3.gemfile +0 -5
  135. data/gemfiles/ruby_2_4.gemfile +0 -5
  136. data/gemfiles/ruby_2_5.gemfile +0 -5
  137. data/gemfiles/ruby_2_6.gemfile +0 -8
  138. data/gemfiles/ruby_2_7.gemfile +0 -8
  139. data/gemfiles/ruby_3_0.gemfile +0 -8
  140. data/gemfiles/ruby_3_1.gemfile +0 -8
  141. data/gemfiles/ruby_3_2.gemfile +0 -8
  142. data/gemfiles/ruby_3_3.gemfile +0 -8
  143. data/gemfiles/style.gemfile +0 -10
  144. data/timecop-rspec.gemspec +0 -146
@@ -1,338 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: Timecop::Rspec::SequentialTimeMachine
8
-
9
- &mdash; Documentation by YARD 0.9.37
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "Timecop::Rspec::SequentialTimeMachine";
19
- relpath = '../../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../../class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../../_index.html">Index (S)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../Timecop.html" title="Timecop (class)">Timecop</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Rspec.html" title="Timecop::Rspec (module)">Rspec</a></span></span>
41
- &raquo;
42
- <span class="title">SequentialTimeMachine</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: Timecop::Rspec::SequentialTimeMachine
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">Object</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">Timecop::Rspec::SequentialTimeMachine</li>
78
-
79
- </ul>
80
- <a href="#" class="inheritanceTree">show all</a>
81
-
82
- </dd>
83
- </dl>
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
- <dl>
96
- <dt>Defined in:</dt>
97
- <dd>lib/timecop/rspec/sequential_time_machine.rb</dd>
98
- </dl>
99
-
100
- </div>
101
-
102
- <h2>Overview</h2><div class="docstring">
103
- <div class="discussion">
104
- <p>Executes examples while allowing time travel to continue across examples.</p>
105
-
106
- <p>Uses TravelLog to coalesce sequential :travel operations when the same<br />
107
- method and start time are reused, enabling long-running time journeys<br />
108
- across multiple examples.</p>
109
-
110
-
111
- </div>
112
- </div>
113
- <div class="tags">
114
-
115
-
116
- </div>
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
- <h2>
125
- Class Method Summary
126
- <small><a href="#" class="summary_toggle">collapse</a></small>
127
- </h2>
128
-
129
- <ul class="summary">
130
-
131
- <li class="public ">
132
- <span class="summary_signature">
133
-
134
- <a href="#instance-class_method" title="instance (class method)">.<strong>instance</strong> &#x21d2; Timecop::Rspec::SequentialTimeMachine </a>
135
-
136
-
137
-
138
- </span>
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
- <span class="summary_desc"><div class='inline'><p>Singleton instance accessor.</p>
149
- </div></span>
150
-
151
- </li>
152
-
153
-
154
- </ul>
155
-
156
- <h2>
157
- Instance Method Summary
158
- <small><a href="#" class="summary_toggle">collapse</a></small>
159
- </h2>
160
-
161
- <ul class="summary">
162
-
163
- <li class="public ">
164
- <span class="summary_signature">
165
-
166
- <a href="#run-instance_method" title="#run (instance method)">#<strong>run</strong>(example) &#x21d2; Object </a>
167
-
168
-
169
-
170
- </span>
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
- <span class="summary_desc"><div class='inline'><p>Run an example with either local or global travel, or without any timecop.</p>
181
- </div></span>
182
-
183
- </li>
184
-
185
-
186
- </ul>
187
-
188
-
189
-
190
-
191
- <div id="class_method_details" class="method_details_list">
192
- <h2>Class Method Details</h2>
193
-
194
-
195
- <div class="method_details first">
196
- <h3 class="signature first" id="instance-class_method">
197
-
198
- .<strong>instance</strong> &#x21d2; <tt><span class='object_link'><a href="" title="Timecop::Rspec::SequentialTimeMachine (class)">Timecop::Rspec::SequentialTimeMachine</a></span></tt>
199
-
200
-
201
-
202
-
203
-
204
- </h3><div class="docstring">
205
- <div class="discussion">
206
- <p>Singleton instance accessor.</p>
207
-
208
-
209
- </div>
210
- </div>
211
- <div class="tags">
212
-
213
- <p class="tag_title">Returns:</p>
214
- <ul class="return">
215
-
216
- <li>
217
-
218
-
219
- <span class='type'>(<tt><span class='object_link'><a href="" title="Timecop::Rspec::SequentialTimeMachine (class)">Timecop::Rspec::SequentialTimeMachine</a></span></tt>)</span>
220
-
221
-
222
-
223
- </li>
224
-
225
- </ul>
226
-
227
- </div><table class="source_code">
228
- <tr>
229
- <td>
230
- <pre class="lines">
231
-
232
-
233
- 15
234
- 16
235
- 17</pre>
236
- </td>
237
- <td>
238
- <pre class="code"><span class="info file"># File 'lib/timecop/rspec/sequential_time_machine.rb', line 15</span>
239
-
240
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
241
- <span class='ivar'>@instance</span> <span class='op'>||=</span> <span class='id identifier rubyid_new'>new</span>
242
- <span class='kw'>end</span></pre>
243
- </td>
244
- </tr>
245
- </table>
246
- </div>
247
-
248
- </div>
249
-
250
- <div id="instance_method_details" class="method_details_list">
251
- <h2>Instance Method Details</h2>
252
-
253
-
254
- <div class="method_details first">
255
- <h3 class="signature first" id="run-instance_method">
256
-
257
- #<strong>run</strong>(example) &#x21d2; <tt>Object</tt>
258
-
259
-
260
-
261
-
262
-
263
- </h3><div class="docstring">
264
- <div class="discussion">
265
- <p>Run an example with either local or global travel, or without any timecop.</p>
266
-
267
-
268
- </div>
269
- </div>
270
- <div class="tags">
271
- <p class="tag_title">Parameters:</p>
272
- <ul class="param">
273
-
274
- <li>
275
-
276
- <span class='name'>example</span>
277
-
278
-
279
- <span class='type'>(<tt>#<span class='object_link'><a href="#run-instance_method" title="Timecop::Rspec::SequentialTimeMachine#run (method)">run</a></span></tt>, <tt>#metadata</tt>)</span>
280
-
281
-
282
-
283
- </li>
284
-
285
- </ul>
286
-
287
- <p class="tag_title">Returns:</p>
288
- <ul class="return">
289
-
290
- <li>
291
-
292
-
293
- <span class='type'>(<tt>Object</tt>)</span>
294
-
295
-
296
-
297
- </li>
298
-
299
- </ul>
300
-
301
- </div><table class="source_code">
302
- <tr>
303
- <td>
304
- <pre class="lines">
305
-
306
-
307
- 22
308
- 23
309
- 24
310
- 25
311
- 26</pre>
312
- </td>
313
- <td>
314
- <pre class="code"><span class="info file"># File 'lib/timecop/rspec/sequential_time_machine.rb', line 22</span>
315
-
316
- <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='id identifier rubyid_example'>example</span><span class='rparen'>)</span>
317
- <span class='id identifier rubyid_example'>example</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="ExampleDecorator.html" title="Timecop::Rspec::ExampleDecorator (class)">ExampleDecorator</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_example'>example</span><span class='rparen'>)</span>
318
-
319
- <span class='id identifier rubyid_runner_for'>runner_for</span><span class='lparen'>(</span><span class='id identifier rubyid_example'>example</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span>
320
- <span class='kw'>end</span></pre>
321
- </td>
322
- </tr>
323
- </table>
324
- </div>
325
-
326
- </div>
327
-
328
- </div>
329
-
330
- <div id="footer">
331
- Generated on Sun Aug 17 17:04:07 2025 by
332
- <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
333
- 0.9.37 (ruby-3.4.5).
334
- </div>
335
-
336
- </div>
337
- </body>
338
- </html>
@@ -1,357 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: Timecop::Rspec::TimeMachine
8
-
9
- &mdash; Documentation by YARD 0.9.37
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "Timecop::Rspec::TimeMachine";
19
- relpath = '../../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../../class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../../_index.html">Index (T)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../Timecop.html" title="Timecop (class)">Timecop</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Rspec.html" title="Timecop::Rspec (module)">Rspec</a></span></span>
41
- &raquo;
42
- <span class="title">TimeMachine</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: Timecop::Rspec::TimeMachine
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">Object</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">Timecop::Rspec::TimeMachine</li>
78
-
79
- </ul>
80
- <a href="#" class="inheritanceTree">show all</a>
81
-
82
- </dd>
83
- </dl>
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
- <dl>
96
- <dt>Defined in:</dt>
97
- <dd>lib/timecop/rspec/time_machine.rb</dd>
98
- </dl>
99
-
100
- </div>
101
-
102
- <h2>Overview</h2><div class="docstring">
103
- <div class="discussion">
104
- <p>Executes an example using Timecop for a single, isolated time operation.</p>
105
-
106
-
107
- </div>
108
- </div>
109
- <div class="tags">
110
-
111
-
112
- </div>
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
- <h2>
121
- Class Method Summary
122
- <small><a href="#" class="summary_toggle">collapse</a></small>
123
- </h2>
124
-
125
- <ul class="summary">
126
-
127
- <li class="public ">
128
- <span class="summary_signature">
129
-
130
- <a href="#instance-class_method" title="instance (class method)">.<strong>instance</strong> &#x21d2; Timecop::Rspec::TimeMachine </a>
131
-
132
-
133
-
134
- </span>
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
- <span class="summary_desc"><div class='inline'><p>Singleton instance accessor.</p>
145
- </div></span>
146
-
147
- </li>
148
-
149
-
150
- </ul>
151
-
152
- <h2>
153
- Instance Method Summary
154
- <small><a href="#" class="summary_toggle">collapse</a></small>
155
- </h2>
156
-
157
- <ul class="summary">
158
-
159
- <li class="public ">
160
- <span class="summary_signature">
161
-
162
- <a href="#run-instance_method" title="#run (instance method)">#<strong>run</strong>(example) &#x21d2; Object </a>
163
-
164
-
165
-
166
- </span>
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
- <span class="summary_desc"><div class='inline'><p>Run an RSpec example, applying local timecop metadata if present.</p>
177
- </div></span>
178
-
179
- </li>
180
-
181
-
182
- </ul>
183
-
184
-
185
-
186
-
187
- <div id="class_method_details" class="method_details_list">
188
- <h2>Class Method Details</h2>
189
-
190
-
191
- <div class="method_details first">
192
- <h3 class="signature first" id="instance-class_method">
193
-
194
- .<strong>instance</strong> &#x21d2; <tt><span class='object_link'><a href="" title="Timecop::Rspec::TimeMachine (class)">Timecop::Rspec::TimeMachine</a></span></tt>
195
-
196
-
197
-
198
-
199
-
200
- </h3><div class="docstring">
201
- <div class="discussion">
202
- <p>Singleton instance accessor.</p>
203
-
204
-
205
- </div>
206
- </div>
207
- <div class="tags">
208
-
209
- <p class="tag_title">Returns:</p>
210
- <ul class="return">
211
-
212
- <li>
213
-
214
-
215
- <span class='type'>(<tt><span class='object_link'><a href="" title="Timecop::Rspec::TimeMachine (class)">Timecop::Rspec::TimeMachine</a></span></tt>)</span>
216
-
217
-
218
-
219
- </li>
220
-
221
- </ul>
222
-
223
- </div><table class="source_code">
224
- <tr>
225
- <td>
226
- <pre class="lines">
227
-
228
-
229
- 11
230
- 12
231
- 13</pre>
232
- </td>
233
- <td>
234
- <pre class="code"><span class="info file"># File 'lib/timecop/rspec/time_machine.rb', line 11</span>
235
-
236
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
237
- <span class='ivar'>@instance</span> <span class='op'>||=</span> <span class='id identifier rubyid_new'>new</span>
238
- <span class='kw'>end</span></pre>
239
- </td>
240
- </tr>
241
- </table>
242
- </div>
243
-
244
- </div>
245
-
246
- <div id="instance_method_details" class="method_details_list">
247
- <h2>Instance Method Details</h2>
248
-
249
-
250
- <div class="method_details first">
251
- <h3 class="signature first" id="run-instance_method">
252
-
253
- #<strong>run</strong>(example) &#x21d2; <tt>Object</tt>
254
-
255
-
256
-
257
-
258
-
259
- </h3><div class="docstring">
260
- <div class="discussion">
261
- <p>Run an RSpec example, applying local timecop metadata if present.</p>
262
-
263
-
264
- </div>
265
- </div>
266
- <div class="tags">
267
- <p class="tag_title">Parameters:</p>
268
- <ul class="param">
269
-
270
- <li>
271
-
272
- <span class='name'>example</span>
273
-
274
-
275
- <span class='type'>(<tt>#<span class='object_link'><a href="#run-instance_method" title="Timecop::Rspec::TimeMachine#run (method)">run</a></span></tt>, <tt>#metadata</tt>)</span>
276
-
277
-
278
-
279
- &mdash;
280
- <div class='inline'><p>An RSpec example or object responding to<br />
281
- the example protocol that will be wrapped by ExampleDecorator.</p>
282
- </div>
283
-
284
- </li>
285
-
286
- </ul>
287
-
288
- <p class="tag_title">Returns:</p>
289
- <ul class="return">
290
-
291
- <li>
292
-
293
-
294
- <span class='type'>(<tt>Object</tt>)</span>
295
-
296
-
297
-
298
- &mdash;
299
- <div class='inline'><p>the result of running the example</p>
300
- </div>
301
-
302
- </li>
303
-
304
- </ul>
305
-
306
- </div><table class="source_code">
307
- <tr>
308
- <td>
309
- <pre class="lines">
310
-
311
-
312
- 20
313
- 21
314
- 22
315
- 23
316
- 24
317
- 25
318
- 26
319
- 27
320
- 28
321
- 29
322
- 30
323
- 31</pre>
324
- </td>
325
- <td>
326
- <pre class="code"><span class="info file"># File 'lib/timecop/rspec/time_machine.rb', line 20</span>
327
-
328
- <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='id identifier rubyid_example'>example</span><span class='rparen'>)</span>
329
- <span class='id identifier rubyid_example'>example</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="ExampleDecorator.html" title="Timecop::Rspec::ExampleDecorator (class)">ExampleDecorator</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_example'>example</span><span class='rparen'>)</span>
330
-
331
- <span class='kw'>return</span> <span class='id identifier rubyid_example'>example</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span> <span class='kw'>unless</span> <span class='id identifier rubyid_example'>example</span><span class='period'>.</span><span class='id identifier rubyid_timecop?'>timecop?</span>
332
-
333
- <span class='id identifier rubyid_method'>method</span> <span class='op'>=</span> <span class='id identifier rubyid_example'>example</span><span class='period'>.</span><span class='id identifier rubyid_timecop_method'>timecop_method</span>
334
- <span class='id identifier rubyid_time'>time</span> <span class='op'>=</span> <span class='id identifier rubyid_example'>example</span><span class='period'>.</span><span class='id identifier rubyid_timecop_time'>timecop_time</span>
335
-
336
- <span class='const'><span class='object_link'><a href="../../Timecop.html" title="Timecop (class)">Timecop</a></span></span><span class='period'>.</span><span class='id identifier rubyid_public_send'>public_send</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='id identifier rubyid_time'>time</span><span class='rparen'>)</span> <span class='kw'>do</span>
337
- <span class='id identifier rubyid_example'>example</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span>
338
- <span class='kw'>end</span>
339
- <span class='kw'>end</span></pre>
340
- </td>
341
- </tr>
342
- </table>
343
- </div>
344
-
345
- </div>
346
-
347
- </div>
348
-
349
- <div id="footer">
350
- Generated on Sun Aug 17 17:04:07 2025 by
351
- <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
352
- 0.9.37 (ruby-3.4.5).
353
- </div>
354
-
355
- </div>
356
- </body>
357
- </html>