timecop-rspec 1.0.2 → 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 +21 -2
- data/README.md +21 -12
- 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 +0 -0
- metadata +43 -137
- 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 -85
- 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 -324
- 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 -11
- 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 -230
- 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 -130
- data/docs/file.CITATION.html +0 -92
- data/docs/file.CODE_OF_CONDUCT.html +0 -201
- data/docs/file.CONTRIBUTING.html +0 -218
- data/docs/file.LICENSE.html +0 -70
- data/docs/file.README.html +0 -545
- 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-rspec-1.0.1.gem.html +0 -71
- data/docs/file.timecop.html +0 -72
- data/docs/file_list.html +0 -129
- data/docs/frames.html +0 -22
- data/docs/index.html +0 -545
- 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 -149
data/docs/Timecop/Rspec.html
DELETED
@@ -1,476 +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
|
-
Module: Timecop::Rspec
|
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";
|
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 (R)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../Timecop.html" title="Timecop (class)">Timecop</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">Rspec</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>Module: Timecop::Rspec
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<dl>
|
80
|
-
<dt>Defined in:</dt>
|
81
|
-
<dd>lib/timecop/rspec.rb<span class="defines">,<br />
|
82
|
-
lib/timecop/rspec/version.rb,<br /> lib/timecop/rspec/traveler.rb,<br /> lib/timecop/rspec/travel_log.rb,<br /> lib/timecop/rspec/time_machine.rb,<br /> lib/timecop/rspec/example_decorator.rb,<br /> lib/timecop/rspec/sequential_time_machine.rb</span>
|
83
|
-
</dd>
|
84
|
-
</dl>
|
85
|
-
|
86
|
-
</div>
|
87
|
-
|
88
|
-
<h2>Overview</h2><div class="docstring">
|
89
|
-
<div class="discussion">
|
90
|
-
<p>RSpec integration for the timecop gem.</p>
|
91
|
-
|
92
|
-
<p>Provides helpers to run examples with frozen or traveling time, and an<br />
|
93
|
-
optional global time that applies across examples when configured via ENV.</p>
|
94
|
-
|
95
|
-
<p>Environment variables:</p>
|
96
|
-
<ul>
|
97
|
-
<li>GLOBAL_TIME_TRAVEL_TIME: String representation of a time (preferred)</li>
|
98
|
-
<li>GLOBAL_TIME_TRAVEL_DATE: String representation of a date (fallback)</li>
|
99
|
-
</ul>
|
100
|
-
|
101
|
-
|
102
|
-
</div>
|
103
|
-
</div>
|
104
|
-
<div class="tags">
|
105
|
-
|
106
|
-
|
107
|
-
</div><h2>Defined Under Namespace</h2>
|
108
|
-
<p class="children">
|
109
|
-
|
110
|
-
|
111
|
-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Rspec/Version.html" title="Timecop::Rspec::Version (module)">Version</a></span>
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Rspec/ExampleDecorator.html" title="Timecop::Rspec::ExampleDecorator (class)">ExampleDecorator</a></span>, <span class='object_link'><a href="Rspec/SequentialTimeMachine.html" title="Timecop::Rspec::SequentialTimeMachine (class)">SequentialTimeMachine</a></span>, <span class='object_link'><a href="Rspec/TimeMachine.html" title="Timecop::Rspec::TimeMachine (class)">TimeMachine</a></span>, <span class='object_link'><a href="Rspec/TravelLog.html" title="Timecop::Rspec::TravelLog (class)">TravelLog</a></span>, <span class='object_link'><a href="Rspec/Traveler.html" title="Timecop::Rspec::Traveler (class)">Traveler</a></span>
|
116
|
-
|
117
|
-
|
118
|
-
</p>
|
119
|
-
|
120
|
-
|
121
|
-
<h2>
|
122
|
-
Constant Summary
|
123
|
-
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
124
|
-
</h2>
|
125
|
-
|
126
|
-
<dl class="constants">
|
127
|
-
|
128
|
-
<dt id="VERSION-constant" class="">VERSION =
|
129
|
-
<div class="docstring">
|
130
|
-
<div class="discussion">
|
131
|
-
<p>Convenience constant aliasing Version::VERSION</p>
|
132
|
-
|
133
|
-
|
134
|
-
</div>
|
135
|
-
</div>
|
136
|
-
<div class="tags">
|
137
|
-
|
138
|
-
<p class="tag_title">Returns:</p>
|
139
|
-
<ul class="return">
|
140
|
-
|
141
|
-
<li>
|
142
|
-
|
143
|
-
|
144
|
-
<span class='type'>(<tt>String</tt>)</span>
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
</li>
|
149
|
-
|
150
|
-
</ul>
|
151
|
-
|
152
|
-
</div>
|
153
|
-
</dt>
|
154
|
-
<dd><pre class="code"><span class='const'><span class='object_link'><a href="Rspec/Version.html" title="Timecop::Rspec::Version (module)">Version</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Rspec/Version.html#VERSION-constant" title="Timecop::Rspec::Version::VERSION (constant)">VERSION</a></span></span></pre></dd>
|
155
|
-
|
156
|
-
</dl>
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
<h2>
|
167
|
-
Class Method Summary
|
168
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
169
|
-
</h2>
|
170
|
-
|
171
|
-
<ul class="summary">
|
172
|
-
|
173
|
-
<li class="public ">
|
174
|
-
<span class="summary_signature">
|
175
|
-
|
176
|
-
<a href="#global_time-class_method" title="global_time (class method)">.<strong>global_time</strong> ⇒ Time </a>
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
</span>
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
<span class="summary_desc"><div class='inline'><p>The globally configured time parsed from ENV.</p>
|
191
|
-
</div></span>
|
192
|
-
|
193
|
-
</li>
|
194
|
-
|
195
|
-
|
196
|
-
<li class="public ">
|
197
|
-
<span class="summary_signature">
|
198
|
-
|
199
|
-
<a href="#global_time_configured%3F-class_method" title="global_time_configured? (class method)">.<strong>global_time_configured?</strong> ⇒ Boolean </a>
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
</span>
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
<span class="summary_desc"><div class='inline'><p>Whether a global time has been configured via ENV.</p>
|
214
|
-
</div></span>
|
215
|
-
|
216
|
-
</li>
|
217
|
-
|
218
|
-
|
219
|
-
<li class="public ">
|
220
|
-
<span class="summary_signature">
|
221
|
-
|
222
|
-
<a href="#time_machine-class_method" title="time_machine (class method)">.<strong>time_machine</strong>(sequential: false) ⇒ Timecop::Rspec::SequentialTimeMachine, Timecop::Rspec::TimeMachine </a>
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
</span>
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
<span class="summary_desc"><div class='inline'><p>Selects a time machine strategy.</p>
|
237
|
-
</div></span>
|
238
|
-
|
239
|
-
</li>
|
240
|
-
|
241
|
-
|
242
|
-
</ul>
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
<div id="class_method_details" class="method_details_list">
|
248
|
-
<h2>Class Method Details</h2>
|
249
|
-
|
250
|
-
|
251
|
-
<div class="method_details first">
|
252
|
-
<h3 class="signature first" id="global_time-class_method">
|
253
|
-
|
254
|
-
.<strong>global_time</strong> ⇒ <tt>Time</tt>
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
</h3><div class="docstring">
|
261
|
-
<div class="discussion">
|
262
|
-
<p>The globally configured time parsed from ENV.</p>
|
263
|
-
|
264
|
-
|
265
|
-
</div>
|
266
|
-
</div>
|
267
|
-
<div class="tags">
|
268
|
-
|
269
|
-
<p class="tag_title">Returns:</p>
|
270
|
-
<ul class="return">
|
271
|
-
|
272
|
-
<li>
|
273
|
-
|
274
|
-
|
275
|
-
<span class='type'>(<tt>Time</tt>)</span>
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
—
|
280
|
-
<div class='inline'><p>the parsed time</p>
|
281
|
-
</div>
|
282
|
-
|
283
|
-
</li>
|
284
|
-
|
285
|
-
</ul>
|
286
|
-
<p class="tag_title">Raises:</p>
|
287
|
-
<ul class="raise">
|
288
|
-
|
289
|
-
<li>
|
290
|
-
|
291
|
-
|
292
|
-
<span class='type'>(<tt>ArgumentError</tt>)</span>
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
—
|
297
|
-
<div class='inline'><p>if ENV contains an unparsable time/date string</p>
|
298
|
-
</div>
|
299
|
-
|
300
|
-
</li>
|
301
|
-
|
302
|
-
</ul>
|
303
|
-
|
304
|
-
</div><table class="source_code">
|
305
|
-
<tr>
|
306
|
-
<td>
|
307
|
-
<pre class="lines">
|
308
|
-
|
309
|
-
|
310
|
-
41
|
311
|
-
42
|
312
|
-
43</pre>
|
313
|
-
</td>
|
314
|
-
<td>
|
315
|
-
<pre class="code"><span class="info file"># File 'lib/timecop/rspec.rb', line 41</span>
|
316
|
-
|
317
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_global_time'>global_time</span>
|
318
|
-
<span class='ivar'>@global_time</span> <span class='op'>||=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_global_time_travel_string'>global_time_travel_string</span><span class='rparen'>)</span>
|
319
|
-
<span class='kw'>end</span></pre>
|
320
|
-
</td>
|
321
|
-
</tr>
|
322
|
-
</table>
|
323
|
-
</div>
|
324
|
-
|
325
|
-
<div class="method_details ">
|
326
|
-
<h3 class="signature " id="global_time_configured?-class_method">
|
327
|
-
|
328
|
-
.<strong>global_time_configured?</strong> ⇒ <tt>Boolean</tt>
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
</h3><div class="docstring">
|
335
|
-
<div class="discussion">
|
336
|
-
<p>Whether a global time has been configured via ENV.</p>
|
337
|
-
|
338
|
-
|
339
|
-
</div>
|
340
|
-
</div>
|
341
|
-
<div class="tags">
|
342
|
-
|
343
|
-
<p class="tag_title">Returns:</p>
|
344
|
-
<ul class="return">
|
345
|
-
|
346
|
-
<li>
|
347
|
-
|
348
|
-
|
349
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
</li>
|
354
|
-
|
355
|
-
</ul>
|
356
|
-
|
357
|
-
</div><table class="source_code">
|
358
|
-
<tr>
|
359
|
-
<td>
|
360
|
-
<pre class="lines">
|
361
|
-
|
362
|
-
|
363
|
-
33
|
364
|
-
34
|
365
|
-
35
|
366
|
-
36</pre>
|
367
|
-
</td>
|
368
|
-
<td>
|
369
|
-
<pre class="code"><span class="info file"># File 'lib/timecop/rspec.rb', line 33</span>
|
370
|
-
|
371
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_global_time_configured?'>global_time_configured?</span>
|
372
|
-
<span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='id identifier rubyid_global_time_travel_string'>global_time_travel_string</span>
|
373
|
-
<span class='op'>!</span><span class='lparen'>(</span><span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='id identifier rubyid_str'>str</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
374
|
-
<span class='kw'>end</span></pre>
|
375
|
-
</td>
|
376
|
-
</tr>
|
377
|
-
</table>
|
378
|
-
</div>
|
379
|
-
|
380
|
-
<div class="method_details ">
|
381
|
-
<h3 class="signature " id="time_machine-class_method">
|
382
|
-
|
383
|
-
.<strong>time_machine</strong>(sequential: false) ⇒ <tt><span class='object_link'><a href="Rspec/SequentialTimeMachine.html" title="Timecop::Rspec::SequentialTimeMachine (class)">Timecop::Rspec::SequentialTimeMachine</a></span></tt>, <tt><span class='object_link'><a href="Rspec/TimeMachine.html" title="Timecop::Rspec::TimeMachine (class)">Timecop::Rspec::TimeMachine</a></span></tt>
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
</h3><div class="docstring">
|
390
|
-
<div class="discussion">
|
391
|
-
<p>Selects a time machine strategy.</p>
|
392
|
-
|
393
|
-
|
394
|
-
</div>
|
395
|
-
</div>
|
396
|
-
<div class="tags">
|
397
|
-
<p class="tag_title">Parameters:</p>
|
398
|
-
<ul class="param">
|
399
|
-
|
400
|
-
<li>
|
401
|
-
|
402
|
-
<span class='name'>sequential</span>
|
403
|
-
|
404
|
-
|
405
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
406
|
-
|
407
|
-
|
408
|
-
<em class="default">(defaults to: <tt>false</tt>)</em>
|
409
|
-
|
410
|
-
|
411
|
-
—
|
412
|
-
<div class='inline'><p>when true, uses a sequential strategy that<br />
|
413
|
-
can continue a travel across examples; when false, uses a simple per<br />
|
414
|
-
example strategy.</p>
|
415
|
-
</div>
|
416
|
-
|
417
|
-
</li>
|
418
|
-
|
419
|
-
</ul>
|
420
|
-
|
421
|
-
<p class="tag_title">Returns:</p>
|
422
|
-
<ul class="return">
|
423
|
-
|
424
|
-
<li>
|
425
|
-
|
426
|
-
|
427
|
-
<span class='type'>(<tt><span class='object_link'><a href="Rspec/SequentialTimeMachine.html" title="Timecop::Rspec::SequentialTimeMachine (class)">Timecop::Rspec::SequentialTimeMachine</a></span></tt>, <tt><span class='object_link'><a href="Rspec/TimeMachine.html" title="Timecop::Rspec::TimeMachine (class)">Timecop::Rspec::TimeMachine</a></span></tt>)</span>
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
</li>
|
432
|
-
|
433
|
-
</ul>
|
434
|
-
|
435
|
-
</div><table class="source_code">
|
436
|
-
<tr>
|
437
|
-
<td>
|
438
|
-
<pre class="lines">
|
439
|
-
|
440
|
-
|
441
|
-
23
|
442
|
-
24
|
443
|
-
25
|
444
|
-
26
|
445
|
-
27
|
446
|
-
28
|
447
|
-
29</pre>
|
448
|
-
</td>
|
449
|
-
<td>
|
450
|
-
<pre class="code"><span class="info file"># File 'lib/timecop/rspec.rb', line 23</span>
|
451
|
-
|
452
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_time_machine'>time_machine</span><span class='lparen'>(</span><span class='label'>sequential:</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
453
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_sequential'>sequential</span>
|
454
|
-
<span class='const'><span class='object_link'><a href="Rspec/SequentialTimeMachine.html" title="Timecop::Rspec::SequentialTimeMachine (class)">SequentialTimeMachine</a></span></span><span class='period'>.</span><span class='id identifier rubyid_instance'><span class='object_link'><a href="Rspec/SequentialTimeMachine.html#instance-class_method" title="Timecop::Rspec::SequentialTimeMachine.instance (method)">instance</a></span></span>
|
455
|
-
<span class='kw'>else</span>
|
456
|
-
<span class='const'><span class='object_link'><a href="Rspec/TimeMachine.html" title="Timecop::Rspec::TimeMachine (class)">TimeMachine</a></span></span><span class='period'>.</span><span class='id identifier rubyid_instance'><span class='object_link'><a href="Rspec/TimeMachine.html#instance-class_method" title="Timecop::Rspec::TimeMachine.instance (method)">instance</a></span></span>
|
457
|
-
<span class='kw'>end</span>
|
458
|
-
<span class='kw'>end</span></pre>
|
459
|
-
</td>
|
460
|
-
</tr>
|
461
|
-
</table>
|
462
|
-
</div>
|
463
|
-
|
464
|
-
</div>
|
465
|
-
|
466
|
-
</div>
|
467
|
-
|
468
|
-
<div id="footer">
|
469
|
-
Generated on Mon Aug 18 05:40:23 2025 by
|
470
|
-
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
471
|
-
0.9.37 (ruby-3.4.5).
|
472
|
-
</div>
|
473
|
-
|
474
|
-
</div>
|
475
|
-
</body>
|
476
|
-
</html>
|
data/docs/Timecop.html
DELETED
@@ -1,143 +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
|
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";
|
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
|
-
|
41
|
-
|
42
|
-
<span class="title">Timecop</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
|
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</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.rb<span class="defines">,<br />
|
98
|
-
lib/timecop/rspec/version.rb,<br /> lib/timecop/rspec/traveler.rb,<br /> lib/timecop/rspec/travel_log.rb,<br /> lib/timecop/rspec/time_machine.rb,<br /> lib/timecop/rspec/example_decorator.rb,<br /> lib/timecop/rspec/sequential_time_machine.rb</span>
|
99
|
-
</dd>
|
100
|
-
</dl>
|
101
|
-
|
102
|
-
</div>
|
103
|
-
|
104
|
-
<h2>Overview</h2><div class="docstring">
|
105
|
-
<div class="discussion">
|
106
|
-
<p>Top-level namespace for Timecop helpers.</p>
|
107
|
-
|
108
|
-
|
109
|
-
</div>
|
110
|
-
</div>
|
111
|
-
<div class="tags">
|
112
|
-
|
113
|
-
|
114
|
-
</div><h2>Defined Under Namespace</h2>
|
115
|
-
<p class="children">
|
116
|
-
|
117
|
-
|
118
|
-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Timecop/Rspec.html" title="Timecop::Rspec (module)">Rspec</a></span>
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
</p>
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
</div>
|
134
|
-
|
135
|
-
<div id="footer">
|
136
|
-
Generated on Mon Aug 18 05:40:23 2025 by
|
137
|
-
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
138
|
-
0.9.37 (ruby-3.4.5).
|
139
|
-
</div>
|
140
|
-
|
141
|
-
</div>
|
142
|
-
</body>
|
143
|
-
</html>
|