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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +36 -2
- data/CONTRIBUTING.md +1 -3
- data/README.md +39 -13
- data/checksums/timecop-rspec-1.0.2.gem.sha256 +1 -0
- data/checksums/timecop-rspec-1.0.2.gem.sha512 +1 -0
- data/checksums/timecop-rspec-1.0.3.gem.sha256 +1 -0
- data/checksums/timecop-rspec-1.0.3.gem.sha512 +1 -0
- data/lib/timecop/rspec/version.rb +1 -1
- data.tar.gz.sig +2 -1
- metadata +53 -140
- metadata.gz.sig +0 -0
- data/.devcontainer/devcontainer.json +0 -26
- data/.env.local.example +0 -3
- data/.envrc +0 -41
- data/.github/FUNDING.yml +0 -13
- data/.github/dependabot.yml +0 -12
- data/.github/workflows/ancient.yml +0 -77
- data/.github/workflows/auto-assign.yml +0 -21
- data/.github/workflows/codeql-analysis.yml +0 -70
- data/.github/workflows/coverage.yml +0 -126
- data/.github/workflows/current.yml +0 -85
- data/.github/workflows/dependency-review.yml +0 -20
- data/.github/workflows/deps_locked.yml +0 -75
- data/.github/workflows/deps_unlocked.yml +0 -84
- data/.github/workflows/discord-notifier.yml +0 -38
- data/.github/workflows/heads.yml +0 -84
- data/.github/workflows/jruby.yml +0 -75
- data/.github/workflows/legacy.yml +0 -67
- data/.github/workflows/style.yml +0 -64
- data/.github/workflows/supported.yml +0 -82
- data/.github/workflows/truffle.yml +0 -75
- data/.github/workflows/unsupported.yml +0 -75
- data/.gitignore +0 -45
- data/.gitlab-ci.yml +0 -44
- data/.idea/.gitignore +0 -8
- data/.idea/GitLink.xml +0 -6
- data/.idea/misc.xml +0 -4
- data/.idea/modules.xml +0 -8
- data/.idea/timecop-rspec.iml +0 -122
- data/.idea/vcs.xml +0 -6
- data/.junie/TASK_NOTE.md +0 -1
- data/.junie/guidelines.md +0 -139
- data/.qlty/qlty.toml +0 -79
- data/.rspec +0 -8
- data/.rubocop.yml +0 -15
- data/.rubocop_gradual.lock +0 -76
- data/.simplecov +0 -11
- data/.tool-versions +0 -1
- data/.yard_gfm_support.rb +0 -22
- data/.yardopts +0 -11
- data/Appraisal.root.gemfile +0 -12
- data/Appraisals +0 -104
- data/CNAME +0 -1
- data/Gemfile +0 -38
- data/Gemfile.lock +0 -293
- data/Rakefile +0 -287
- data/bin/appraisal +0 -16
- data/bin/bundle-audit +0 -16
- data/bin/bundler-audit +0 -16
- data/bin/code_climate_reek +0 -16
- data/bin/coderay +0 -16
- data/bin/console +0 -12
- data/bin/erb +0 -16
- data/bin/gem_checksums +0 -16
- data/bin/htmldiff +0 -16
- data/bin/irb +0 -16
- data/bin/kramdown +0 -16
- data/bin/ldiff +0 -16
- data/bin/nokogiri +0 -16
- data/bin/pry +0 -16
- data/bin/racc +0 -16
- data/bin/rake +0 -16
- data/bin/rdbg +0 -16
- data/bin/rdoc +0 -16
- data/bin/reek +0 -16
- data/bin/ri +0 -16
- data/bin/rspec +0 -16
- data/bin/rubocop +0 -16
- data/bin/rubocop-gradual +0 -16
- data/bin/ruby-parse +0 -16
- data/bin/ruby-rewrite +0 -16
- data/bin/setup +0 -7
- data/bin/standardrb +0 -16
- data/bin/thor +0 -16
- data/bin/yard +0 -16
- data/bin/yard-junk +0 -16
- data/bin/yardoc +0 -16
- data/bin/yri +0 -16
- data/certs/pboling.pem +0 -27
- data/docs/Timecop/Rspec/ExampleDecorator.html +0 -626
- data/docs/Timecop/Rspec/SequentialTimeMachine.html +0 -338
- data/docs/Timecop/Rspec/TimeMachine.html +0 -357
- data/docs/Timecop/Rspec/TravelLog.html +0 -440
- data/docs/Timecop/Rspec/Traveler.html +0 -353
- data/docs/Timecop/Rspec/Version.html +0 -154
- data/docs/Timecop/Rspec.html +0 -476
- data/docs/Timecop.html +0 -143
- data/docs/_index.html +0 -224
- data/docs/class_list.html +0 -54
- data/docs/css/common.css +0 -1
- data/docs/css/full_list.css +0 -58
- data/docs/css/style.css +0 -503
- data/docs/file.CHANGELOG.html +0 -110
- data/docs/file.CITATION.html +0 -92
- data/docs/file.CODE_OF_CONDUCT.html +0 -201
- data/docs/file.CONTRIBUTING.html +0 -220
- data/docs/file.LICENSE.html +0 -70
- data/docs/file.README.html +0 -531
- data/docs/file.REEK.html +0 -71
- data/docs/file.RUBOCOP.html +0 -171
- data/docs/file.SECURITY.html +0 -101
- data/docs/file.rspec.html +0 -109
- data/docs/file.timecop-rspec-1.0.0.gem.html +0 -71
- data/docs/file.timecop.html +0 -72
- data/docs/file_list.html +0 -119
- data/docs/frames.html +0 -22
- data/docs/index.html +0 -531
- data/docs/js/app.js +0 -344
- data/docs/js/full_list.js +0 -242
- data/docs/js/jquery.js +0 -4
- data/docs/method_list.html +0 -198
- data/docs/top-level-namespace.html +0 -110
- data/gemfiles/audit.gemfile +0 -10
- data/gemfiles/coverage.gemfile +0 -10
- data/gemfiles/current.gemfile +0 -8
- data/gemfiles/deps_unlocked.gemfile +0 -13
- data/gemfiles/head.gemfile +0 -9
- data/gemfiles/modular/audit.gemfile +0 -5
- data/gemfiles/modular/coverage.gemfile +0 -6
- data/gemfiles/modular/documentation.gemfile +0 -11
- data/gemfiles/modular/style.gemfile +0 -14
- data/gemfiles/ruby_2_3.gemfile +0 -5
- data/gemfiles/ruby_2_4.gemfile +0 -5
- data/gemfiles/ruby_2_5.gemfile +0 -5
- data/gemfiles/ruby_2_6.gemfile +0 -8
- data/gemfiles/ruby_2_7.gemfile +0 -8
- data/gemfiles/ruby_3_0.gemfile +0 -8
- data/gemfiles/ruby_3_1.gemfile +0 -8
- data/gemfiles/ruby_3_2.gemfile +0 -8
- data/gemfiles/ruby_3_3.gemfile +0 -8
- data/gemfiles/style.gemfile +0 -10
- 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
|
-
— 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> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../../Timecop.html" title="Timecop (class)">Timecop</a></span></span> » <span class='title'><span class='object_link'><a href="../Rspec.html" title="Timecop::Rspec (module)">Rspec</a></span></span>
|
41
|
-
»
|
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> ⇒ 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) ⇒ 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> ⇒ <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) ⇒ <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
|
-
— 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> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../../Timecop.html" title="Timecop (class)">Timecop</a></span></span> » <span class='title'><span class='object_link'><a href="../Rspec.html" title="Timecop::Rspec (module)">Rspec</a></span></span>
|
41
|
-
»
|
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> ⇒ 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) ⇒ 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> ⇒ <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) ⇒ <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
|
-
—
|
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
|
-
—
|
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>
|