sprout 1.0.35.pre → 1.1.2.pre
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sprout might be problematic. Click here for more details.
- data/Gemfile +1 -1
- data/Gemfile.lock +0 -2
- data/README.textile +1 -1
- data/VERSION +1 -1
- data/lib/sprout/concern.rb +5 -7
- data/lib/sprout/daemon.rb +183 -143
- data/lib/sprout/executable/base.rb +564 -0
- data/lib/sprout/executable.rb +1 -550
- data/lib/sprout/generator/base.rb +2 -3
- data/lib/sprout/generator.rb +2 -1
- data/lib/sprout/generators/ruby/templates/ruby_base.rb +1 -2
- data/lib/sprout/library.rb +3 -3
- data/lib/sprout/output_buffer.rb +35 -0
- data/lib/sprout/process_runner.rb +68 -17
- data/lib/sprout/progress_bar.rb +5 -5
- data/lib/sprout/remote_file_target.rb +1 -1
- data/lib/sprout/system/base_system.rb +3 -3
- data/lib/sprout/system/unix_system.rb +1 -1
- data/lib/sprout/{test/sprout_test_case.rb → test_helper.rb} +214 -14
- data/lib/sprout/version.rb +1 -1
- data/lib/sprout.rb +133 -2
- data/rakefile.rb +2 -0
- data/test/fixtures/examples/echo_inputs.rb +1 -2
- data/test/fixtures/executable/fdb.rb +7 -9
- data/test/fixtures/executable/flex3sdk_gem/fdb +49 -18
- data/test/fixtures/executable/mxmlc.rb +1 -2
- data/test/fixtures/executable/subclass/executable_subclass.rb +0 -1
- data/test/fixtures/executable/subclass/executable_superclass.rb +1 -2
- data/test/fixtures/specification/flex4sdk.rb +35 -24
- data/test/unit/archive_unpacker_test.rb +1 -1
- data/test/unit/boolean_param_test.rb +1 -1
- data/test/unit/daemon_test.rb +35 -3
- data/test/unit/executable_option_parser_test.rb +2 -3
- data/test/unit/executable_param_test.rb +1 -1
- data/test/unit/executable_test.rb +8 -15
- data/test/unit/fake_other_executable.rb +1 -2
- data/test/unit/file_param_test.rb +1 -1
- data/test/unit/file_target_test.rb +1 -1
- data/test/unit/files_param_test.rb +1 -1
- data/test/unit/generator_generator_test.rb +1 -1
- data/test/unit/generator_test.rb +1 -1
- data/test/unit/library_generator_test.rb +1 -1
- data/test/unit/library_test.rb +1 -1
- data/test/unit/osx_system_test.rb +1 -1
- data/test/unit/path_param_test.rb +1 -1
- data/test/unit/paths_param_test.rb +1 -1
- data/test/unit/platform_test.rb +1 -1
- data/test/unit/process_runner_test.rb +1 -1
- data/test/unit/rdoc_parser_test.rb +1 -1
- data/test/unit/remote_file_loader_test.rb +1 -1
- data/test/unit/remote_file_target_test.rb +1 -1
- data/test/unit/ruby_feature_test.rb +1 -1
- data/test/unit/ruby_generator_test.rb +1 -1
- data/test/unit/specification_test.rb +8 -1
- data/test/unit/sprout_test.rb +2 -2
- data/test/unit/string_param_test.rb +1 -1
- data/test/unit/string_test.rb +1 -1
- data/test/unit/strings_param_test.rb +1 -1
- data/test/unit/test_helper.rb +33 -1
- data/test/unit/tool_generator_test.rb +1 -1
- data/test/unit/unix_system_test.rb +1 -1
- data/test/unit/user_test.rb +1 -1
- data/test/unit/vista_system_test.rb +1 -1
- data/test/unit/win_nix_system_test.rb +1 -1
- data/test/unit/win_system_test.rb +1 -1
- data/test-stderr.log +1 -0
- data/test-stdout.log +237 -0
- metadata +15 -190
- data/doc/Dir.html +0 -288
- data/doc/Rake/Task.html +0 -184
- data/doc/Sprout/ArchiveUnpacker.html +0 -1246
- data/doc/Sprout/Base/ClassMethods.html +0 -434
- data/doc/Sprout/Base.html +0 -126
- data/doc/Sprout/Concern.html +0 -353
- data/doc/Sprout/Daemon/ClassMethods.html +0 -244
- data/doc/Sprout/Daemon/InstanceMethods.html +0 -601
- data/doc/Sprout/Daemon.html +0 -166
- data/doc/Sprout/Errors/ArchiveUnpackerError.html +0 -125
- data/doc/Sprout/Errors/DestinationExistsError.html +0 -133
- data/doc/Sprout/Errors/DuplicateMemberError.html +0 -132
- data/doc/Sprout/Errors/ExecutableError.html +0 -125
- data/doc/Sprout/Errors/ExecutableRegistrationError.html +0 -132
- data/doc/Sprout/Errors/ExecutionError.html +0 -121
- data/doc/Sprout/Errors/GeneratorError.html +0 -125
- data/doc/Sprout/Errors/InvalidArgumentError.html +0 -132
- data/doc/Sprout/Errors/LoadError.html +0 -121
- data/doc/Sprout/Errors/MissingArgumentError.html +0 -132
- data/doc/Sprout/Errors/MissingExecutableError.html +0 -132
- data/doc/Sprout/Errors/MissingGeneratorError.html +0 -132
- data/doc/Sprout/Errors/MissingTemplateError.html +0 -132
- data/doc/Sprout/Errors/ProcessRunnerError.html +0 -121
- data/doc/Sprout/Errors/RemoteFileLoaderError.html +0 -110
- data/doc/Sprout/Errors/SproutError.html +0 -114
- data/doc/Sprout/Errors/UnknownArchiveType.html +0 -122
- data/doc/Sprout/Errors/UsageError.html +0 -121
- data/doc/Sprout/Errors/ValidationError.html +0 -121
- data/doc/Sprout/Errors/VersionRequirementNotMetError.html +0 -121
- data/doc/Sprout/Errors.html +0 -101
- data/doc/Sprout/Executable/Boolean.html +0 -483
- data/doc/Sprout/Executable/ClassMethods.html +0 -417
- data/doc/Sprout/Executable/CollectionParam.html +0 -483
- data/doc/Sprout/Executable/FileParam.html +0 -484
- data/doc/Sprout/Executable/Files.html +0 -292
- data/doc/Sprout/Executable/InstanceMethods.html +0 -2006
- data/doc/Sprout/Executable/Number.html +0 -141
- data/doc/Sprout/Executable/Param.html +0 -2818
- data/doc/Sprout/Executable/ParameterFactory.html +0 -232
- data/doc/Sprout/Executable/Path.html +0 -223
- data/doc/Sprout/Executable/Paths.html +0 -253
- data/doc/Sprout/Executable/StringParam.html +0 -213
- data/doc/Sprout/Executable/Strings.html +0 -167
- data/doc/Sprout/Executable/Url.html +0 -160
- data/doc/Sprout/Executable/Urls.html +0 -170
- data/doc/Sprout/Executable.html +0 -173
- data/doc/Sprout/FileTarget.html +0 -1109
- data/doc/Sprout/Generator/Base.html +0 -1626
- data/doc/Sprout/Generator/Command.html +0 -690
- data/doc/Sprout/Generator/DirectoryManifest.html +0 -476
- data/doc/Sprout/Generator/FileManifest.html +0 -572
- data/doc/Sprout/Generator/Manifest.html +0 -377
- data/doc/Sprout/Generator/TemplateManifest.html +0 -196
- data/doc/Sprout/Generator.html +0 -689
- data/doc/Sprout/GeneratorGenerator.html +0 -1018
- data/doc/Sprout/Library.html +0 -1141
- data/doc/Sprout/LibraryGenerator.html +0 -309
- data/doc/Sprout/Log.html +0 -496
- data/doc/Sprout/MXMLC.html +0 -6373
- data/doc/Sprout/Platform.html +0 -714
- data/doc/Sprout/ProcessRunner.html +0 -1352
- data/doc/Sprout/ProgressBar.html +0 -376
- data/doc/Sprout/ProgressBarImpl.html +0 -2119
- data/doc/Sprout/ProgressBarManager.html +0 -434
- data/doc/Sprout/ProgressBarOutputStream.html +0 -416
- data/doc/Sprout/RDocParser.html +0 -211
- data/doc/Sprout/RemoteFileLoader.html +0 -172
- data/doc/Sprout/RemoteFileTarget.html +0 -679
- data/doc/Sprout/ReversedProgressBar.html +0 -194
- data/doc/Sprout/RubyFeature/ClassMethods.html +0 -1065
- data/doc/Sprout/RubyFeature.html +0 -155
- data/doc/Sprout/RubyGenerator.html +0 -764
- data/doc/Sprout/Specification.html +0 -767
- data/doc/Sprout/System/BaseSystem.html +0 -1455
- data/doc/Sprout/System/JavaSystem.html +0 -122
- data/doc/Sprout/System/OSXSystem.html +0 -335
- data/doc/Sprout/System/ThreadMock.html +0 -193
- data/doc/Sprout/System/UnixSystem.html +0 -584
- data/doc/Sprout/System/VistaSystem.html +0 -251
- data/doc/Sprout/System/WinNixSystem.html +0 -325
- data/doc/Sprout/System/WinSystem.html +0 -571
- data/doc/Sprout/System.html +0 -191
- data/doc/Sprout/ToolGenerator.html +0 -931
- data/doc/Sprout/VERSION.html +0 -128
- data/doc/Sprout.html +0 -144
- data/doc/SproutTestCase.html +0 -1412
- data/doc/String.html +0 -286
- data/doc/_index.html +0 -1035
- data/doc/class_list.html +0 -36
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -53
- data/doc/css/style.css +0 -310
- data/doc/file.README.html +0 -96
- data/doc/file.archive_unpacker.html +0 -288
- data/doc/file.base.html +0 -208
- data/doc/file.base_system.html +0 -278
- data/doc/file.boolean.html +0 -135
- data/doc/file.collection_param.html +0 -139
- data/doc/file.command.html +0 -126
- data/doc/file.concern.html +0 -136
- data/doc/file.daemon.html +0 -309
- data/doc/file.dir.html +0 -76
- data/doc/file.directory_manifest.html +0 -122
- data/doc/file.errors.html +0 -147
- data/doc/file.executable.html +0 -638
- data/doc/file.file_manifest.html +0 -109
- data/doc/file.file_param.html +0 -120
- data/doc/file.file_target.html +0 -140
- data/doc/file.files.html +0 -85
- data/doc/file.generator.html +0 -296
- data/doc/file.generator_class.html +0 -72
- data/doc/file.generator_generator.html +0 -137
- data/doc/file.generator_test.html +0 -92
- data/doc/file.generator_test_helper.html +0 -67
- data/doc/file.java_system.html +0 -62
- data/doc/file.library.html +0 -291
- data/doc/file.library_generator.html +0 -74
- data/doc/file.log.html +0 -100
- data/doc/file.manifest.html +0 -67
- data/doc/file.mxmlc.html +0 -740
- data/doc/file.number.html +0 -67
- data/doc/file.osx_system.html +0 -79
- data/doc/file.param.html +0 -491
- data/doc/file.parameter_factory.html +0 -119
- data/doc/file.path.html +0 -81
- data/doc/file.paths.html +0 -80
- data/doc/file.platform.html +0 -124
- data/doc/file.process_runner.html +0 -224
- data/doc/file.progress_bar.html +0 -390
- data/doc/file.rdoc_parser.html +0 -145
- data/doc/file.remote_file_loader.html +0 -117
- data/doc/file.remote_file_target.html +0 -176
- data/doc/file.ruby_base.html +0 -64
- data/doc/file.ruby_feature.html +0 -244
- data/doc/file.ruby_generator.html +0 -118
- data/doc/file.ruby_input.html +0 -62
- data/doc/file.ruby_test_case.html +0 -78
- data/doc/file.ruby_test_helper.html +0 -61
- data/doc/file.specification.html +0 -248
- data/doc/file.sprout.html +0 -64
- data/doc/file.sprout_test_case.html +0 -280
- data/doc/file.string.html +0 -72
- data/doc/file.string_param.html +0 -76
- data/doc/file.strings.html +0 -71
- data/doc/file.system.html +0 -86
- data/doc/file.template_manifest.html +0 -67
- data/doc/file.tool.html +0 -92
- data/doc/file.tool_generator.html +0 -90
- data/doc/file.unix_system.html +0 -128
- data/doc/file.url.html +0 -71
- data/doc/file.urls.html +0 -70
- data/doc/file.version.html +0 -71
- data/doc/file.vista_system.html +0 -69
- data/doc/file.win_nix_system.html +0 -88
- data/doc/file.win_system.html +0 -129
- data/doc/file_list.html +0 -230
- data/doc/frames.html +0 -13
- data/doc/index.html +0 -96
- data/doc/js/app.js +0 -202
- data/doc/js/full_list.js +0 -149
- data/doc/js/jquery.js +0 -154
- data/doc/method_list.html +0 -3355
- data/doc/top-level-namespace.html +0 -192
- data/lib/sprout/base.rb +0 -121
- data/lib/sprout/log.rb +0 -46
- data/test/unit/sprout_test_helper.rb +0 -33
data/doc/SproutTestCase.html
DELETED
@@ -1,1412 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta name="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>Module: SproutTestCase</title>
|
7
|
-
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
-
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
-
|
10
|
-
<script type="text/javascript" charset="utf-8">
|
11
|
-
relpath = '';
|
12
|
-
if (relpath != '') relpath += '/';
|
13
|
-
</script>
|
14
|
-
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
15
|
-
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
16
|
-
|
17
|
-
</head>
|
18
|
-
<body>
|
19
|
-
<script type="text/javascript" charset="utf-8">
|
20
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
21
|
-
</script>
|
22
|
-
|
23
|
-
<div id="header">
|
24
|
-
<div id="menu">
|
25
|
-
|
26
|
-
<a href="_index.html">Index (S)</a> »
|
27
|
-
|
28
|
-
|
29
|
-
<span class="title">SproutTestCase</span>
|
30
|
-
|
31
|
-
|
32
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="search">
|
36
|
-
<a id="class_list_link" href="#">Class List</a>
|
37
|
-
<a id="method_list_link" href="#">Method List</a>
|
38
|
-
<a id ="file_list_link" href="#">File List</a>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div class="clear"></div>
|
42
|
-
</div>
|
43
|
-
|
44
|
-
<iframe id="search_frame"></iframe>
|
45
|
-
|
46
|
-
<div id="content"><h1>Module: SproutTestCase
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
</h1>
|
51
|
-
|
52
|
-
<dl class="box">
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
<dt class="r1">Includes:</dt>
|
59
|
-
<dd class="r1">Gem::DefaultUserInteraction</dd>
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
<dt class="r2 last">Defined in:</dt>
|
66
|
-
<dd class="r2 last">lib/sprout/test/sprout_test_case.rb</dd>
|
67
|
-
|
68
|
-
</dl>
|
69
|
-
<div class="clear"></div>
|
70
|
-
|
71
|
-
<h2>Overview</h2><div class="docstring">
|
72
|
-
<div class="discussion">
|
73
|
-
|
74
|
-
<p>Had to make this a module instead of a base class because the ruby test
|
75
|
-
suite kept complaining that the abstract test case didn't have any test
|
76
|
-
mehods or assertions</p>
|
77
|
-
|
78
|
-
|
79
|
-
</div>
|
80
|
-
</div>
|
81
|
-
<div class="tags">
|
82
|
-
|
83
|
-
</div>
|
84
|
-
<h2>Constant Summary</h2>
|
85
|
-
|
86
|
-
<dl class="constants">
|
87
|
-
|
88
|
-
<dt id="FIXTURES_NAME-constant" class="">FIXTURES_NAME =
|
89
|
-
|
90
|
-
</dt>
|
91
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>fixtures</span><span class='tstring_end'>'</span></span></pre></dd>
|
92
|
-
|
93
|
-
</dl>
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
<h2>
|
101
|
-
Instance Method Summary
|
102
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
103
|
-
</h2>
|
104
|
-
|
105
|
-
<ul class="summary">
|
106
|
-
|
107
|
-
<li class="public ">
|
108
|
-
<span class="summary_signature">
|
109
|
-
|
110
|
-
<a href="#as_a_mac_system-instance_method" title="#as_a_mac_system (instance method)">- (Object) <strong>as_a_mac_system</strong> {|sys| ... }</a>
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
</span>
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
124
|
-
|
125
|
-
</li>
|
126
|
-
|
127
|
-
|
128
|
-
<li class="public ">
|
129
|
-
<span class="summary_signature">
|
130
|
-
|
131
|
-
<a href="#as_a_unix_system-instance_method" title="#as_a_unix_system (instance method)">- (Object) <strong>as_a_unix_system</strong> {|sys| ... }</a>
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
</span>
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
145
|
-
|
146
|
-
</li>
|
147
|
-
|
148
|
-
|
149
|
-
<li class="public ">
|
150
|
-
<span class="summary_signature">
|
151
|
-
|
152
|
-
<a href="#as_a_win_nix_system-instance_method" title="#as_a_win_nix_system (instance method)">- (Object) <strong>as_a_win_nix_system</strong> {|sys| ... }</a>
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
</span>
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
166
|
-
|
167
|
-
</li>
|
168
|
-
|
169
|
-
|
170
|
-
<li class="public ">
|
171
|
-
<span class="summary_signature">
|
172
|
-
|
173
|
-
<a href="#as_a_windows_system-instance_method" title="#as_a_windows_system (instance method)">- (Object) <strong>as_a_windows_system</strong> {|sys| ... }</a>
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
</span>
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
187
|
-
|
188
|
-
</li>
|
189
|
-
|
190
|
-
|
191
|
-
<li class="public ">
|
192
|
-
<span class="summary_signature">
|
193
|
-
|
194
|
-
<a href="#as_each_system-instance_method" title="#as_each_system (instance method)">- (Object) <strong>as_each_system</strong> </a>
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
</span>
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
208
|
-
|
209
|
-
</li>
|
210
|
-
|
211
|
-
|
212
|
-
<li class="public ">
|
213
|
-
<span class="summary_signature">
|
214
|
-
|
215
|
-
<a href="#assert_directory-instance_method" title="#assert_directory (instance method)">- (Object) <strong>assert_directory</strong>(path, message = nil) </a>
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
</span>
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
229
|
-
|
230
|
-
</li>
|
231
|
-
|
232
|
-
|
233
|
-
<li class="public ">
|
234
|
-
<span class="summary_signature">
|
235
|
-
|
236
|
-
<a href="#assert_file-instance_method" title="#assert_file (instance method)">- (Object) <strong>assert_file</strong>(path, message = nil) {|File.read(path)| ... }</a>
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
</span>
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
250
|
-
|
251
|
-
</li>
|
252
|
-
|
253
|
-
|
254
|
-
<li class="public ">
|
255
|
-
<span class="summary_signature">
|
256
|
-
|
257
|
-
<a href="#assert_matches-instance_method" title="#assert_matches (instance method)">- (Object) <strong>assert_matches</strong>(expression, string, message = '') </a>
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
</span>
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
271
|
-
|
272
|
-
</li>
|
273
|
-
|
274
|
-
|
275
|
-
<li class="public ">
|
276
|
-
<span class="summary_signature">
|
277
|
-
|
278
|
-
<a href="#assert_not_empty-instance_method" title="#assert_not_empty (instance method)">- (Object) <strong>assert_not_empty</strong>(path, message = nil) </a>
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
</span>
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
292
|
-
|
293
|
-
</li>
|
294
|
-
|
295
|
-
|
296
|
-
<li class="public ">
|
297
|
-
<span class="summary_signature">
|
298
|
-
|
299
|
-
<a href="#clear_tasks-instance_method" title="#clear_tasks (instance method)">- (Object) <strong>clear_tasks</strong> </a>
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
</span>
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
313
|
-
|
314
|
-
</li>
|
315
|
-
|
316
|
-
|
317
|
-
<li class="public ">
|
318
|
-
<span class="summary_signature">
|
319
|
-
|
320
|
-
<a href="#create_file-instance_method" title="#create_file (instance method)">- (Object) <strong>create_file</strong>(path) </a>
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
</span>
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
334
|
-
|
335
|
-
</li>
|
336
|
-
|
337
|
-
|
338
|
-
<li class="public ">
|
339
|
-
<span class="summary_signature">
|
340
|
-
|
341
|
-
<a href="#fixtures-instance_method" title="#fixtures (instance method)">- (Object) <strong>fixtures</strong>(from = nil) </a>
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
</span>
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
355
|
-
|
356
|
-
</li>
|
357
|
-
|
358
|
-
|
359
|
-
<li class="public ">
|
360
|
-
<span class="summary_signature">
|
361
|
-
|
362
|
-
<a href="#get_task-instance_method" title="#get_task (instance method)">- (Object) <strong>get_task</strong>(name) </a>
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
</span>
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
376
|
-
|
377
|
-
</li>
|
378
|
-
|
379
|
-
|
380
|
-
<li class="public ">
|
381
|
-
<span class="summary_signature">
|
382
|
-
|
383
|
-
<a href="#make_temp_folder-instance_method" title="#make_temp_folder (instance method)">- (Object) <strong>make_temp_folder</strong>(from) </a>
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
</span>
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
397
|
-
|
398
|
-
</li>
|
399
|
-
|
400
|
-
|
401
|
-
<li class="public ">
|
402
|
-
<span class="summary_signature">
|
403
|
-
|
404
|
-
<a href="#remove_file-instance_method" title="#remove_file (instance method)">- (Object) <strong>remove_file</strong>(path = nil) </a>
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
</span>
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
418
|
-
|
419
|
-
</li>
|
420
|
-
|
421
|
-
|
422
|
-
<li class="public ">
|
423
|
-
<span class="summary_signature">
|
424
|
-
|
425
|
-
<a href="#run_task-instance_method" title="#run_task (instance method)">- (Object) <strong>run_task</strong>(name) </a>
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
</span>
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
439
|
-
|
440
|
-
</li>
|
441
|
-
|
442
|
-
|
443
|
-
<li class="public ">
|
444
|
-
<span class="summary_signature">
|
445
|
-
|
446
|
-
<a href="#setup-instance_method" title="#setup (instance method)">- (Object) <strong>setup</strong> </a>
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
</span>
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
460
|
-
|
461
|
-
</li>
|
462
|
-
|
463
|
-
|
464
|
-
<li class="public ">
|
465
|
-
<span class="summary_signature">
|
466
|
-
|
467
|
-
<a href="#skip-instance_method" title="#skip (instance method)">- (Object) <strong>skip</strong>(message = "") </a>
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
</span>
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
481
|
-
|
482
|
-
</li>
|
483
|
-
|
484
|
-
|
485
|
-
<li class="public ">
|
486
|
-
<span class="summary_signature">
|
487
|
-
|
488
|
-
<a href="#teardown-instance_method" title="#teardown (instance method)">- (Object) <strong>teardown</strong> </a>
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
</span>
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
502
|
-
|
503
|
-
</li>
|
504
|
-
|
505
|
-
|
506
|
-
<li class="public ">
|
507
|
-
<span class="summary_signature">
|
508
|
-
|
509
|
-
<a href="#temp_cache-instance_method" title="#temp_cache (instance method)">- (Object) <strong>temp_cache</strong> </a>
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
</span>
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
523
|
-
|
524
|
-
</li>
|
525
|
-
|
526
|
-
|
527
|
-
<li class="public ">
|
528
|
-
<span class="summary_signature">
|
529
|
-
|
530
|
-
<a href="#temp_path-instance_method" title="#temp_path (instance method)">- (Object) <strong>temp_path</strong> </a>
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
</span>
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
544
|
-
|
545
|
-
</li>
|
546
|
-
|
547
|
-
|
548
|
-
</ul>
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
<div id="instance_method_details" class="method_details_list">
|
555
|
-
<h2>Instance Method Details</h2>
|
556
|
-
|
557
|
-
|
558
|
-
<div class="method_details first">
|
559
|
-
<p class="signature first" id="as_a_mac_system-instance_method">
|
560
|
-
|
561
|
-
- (<tt>Object</tt>) <strong>as_a_mac_system</strong> {|sys| ... }
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
</p><div class="docstring">
|
566
|
-
<div class="discussion">
|
567
|
-
|
568
|
-
|
569
|
-
</div>
|
570
|
-
</div>
|
571
|
-
<div class="tags">
|
572
|
-
<h3>Yields:</h3>
|
573
|
-
<ul class="yield">
|
574
|
-
|
575
|
-
<li>
|
576
|
-
|
577
|
-
<span class='type'>(<tt>sys</tt>)</span>
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
</li>
|
583
|
-
|
584
|
-
</ul>
|
585
|
-
|
586
|
-
</div><table class="source_code">
|
587
|
-
<tr>
|
588
|
-
<td>
|
589
|
-
<pre class="lines">
|
590
|
-
|
591
|
-
|
592
|
-
147
|
593
|
-
148
|
594
|
-
149
|
595
|
-
150
|
596
|
-
151
|
597
|
-
152
|
598
|
-
153
|
599
|
-
154
|
600
|
-
155</pre>
|
601
|
-
</td>
|
602
|
-
<td>
|
603
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 147</span>
|
604
|
-
|
605
|
-
<span class='kw'>def</span> <span class='id as_a_mac_system'>as_a_mac_system</span>
|
606
|
-
<span class='id sys'>sys</span> <span class='op'>=</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>System</span><span class='op'>::</span><span class='const'>OSXSystem</span><span class='period'>.</span><span class='id new'>new</span>
|
607
|
-
<span class='const'>Sprout</span><span class='op'>::</span><span class='const'>System</span><span class='period'>.</span><span class='id stubs'>stubs</span><span class='lparen'>(</span><span class='symbol'>:create</span><span class='rparen'>)</span><span class='period'>.</span><span class='id returns'>returns</span> <span class='id sys'>sys</span>
|
608
|
-
<span class='kw'>yield</span> <span class='id sys'>sys</span> <span class='kw'>if</span> <span class='id block_given?'>block_given?</span>
|
609
|
-
<span class='comment'># Ugh - This is way too greedy... We're killing all mocks in here
|
610
|
-
</span> <span class='comment'># Doing it anyway b/c we need to get Windows support in place...
|
611
|
-
</span> <span class='comment'># TODO: Implement this feature without clobbering all stubs/mocks
|
612
|
-
</span> <span class='comment'>#Mocha::Mockery.instance.teardown
|
613
|
-
</span><span class='kw'>end</span></pre>
|
614
|
-
</td>
|
615
|
-
</tr>
|
616
|
-
</table>
|
617
|
-
</div>
|
618
|
-
|
619
|
-
<div class="method_details ">
|
620
|
-
<p class="signature " id="as_a_unix_system-instance_method">
|
621
|
-
|
622
|
-
- (<tt>Object</tt>) <strong>as_a_unix_system</strong> {|sys| ... }
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
</p><div class="docstring">
|
627
|
-
<div class="discussion">
|
628
|
-
|
629
|
-
|
630
|
-
</div>
|
631
|
-
</div>
|
632
|
-
<div class="tags">
|
633
|
-
<h3>Yields:</h3>
|
634
|
-
<ul class="yield">
|
635
|
-
|
636
|
-
<li>
|
637
|
-
|
638
|
-
<span class='type'>(<tt>sys</tt>)</span>
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
</li>
|
644
|
-
|
645
|
-
</ul>
|
646
|
-
|
647
|
-
</div><table class="source_code">
|
648
|
-
<tr>
|
649
|
-
<td>
|
650
|
-
<pre class="lines">
|
651
|
-
|
652
|
-
|
653
|
-
137
|
654
|
-
138
|
655
|
-
139
|
656
|
-
140
|
657
|
-
141
|
658
|
-
142
|
659
|
-
143
|
660
|
-
144
|
661
|
-
145</pre>
|
662
|
-
</td>
|
663
|
-
<td>
|
664
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 137</span>
|
665
|
-
|
666
|
-
<span class='kw'>def</span> <span class='id as_a_unix_system'>as_a_unix_system</span>
|
667
|
-
<span class='id sys'>sys</span> <span class='op'>=</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>System</span><span class='op'>::</span><span class='const'>UnixSystem</span><span class='period'>.</span><span class='id new'>new</span>
|
668
|
-
<span class='id expectation'>expectation</span> <span class='op'>=</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>System</span><span class='period'>.</span><span class='id stubs'>stubs</span><span class='lparen'>(</span><span class='symbol'>:create</span><span class='rparen'>)</span><span class='period'>.</span><span class='id returns'>returns</span> <span class='id sys'>sys</span>
|
669
|
-
<span class='kw'>yield</span> <span class='id sys'>sys</span> <span class='kw'>if</span> <span class='id block_given?'>block_given?</span>
|
670
|
-
<span class='comment'># Ugh - This is way too greedy... We're killing all mocks in here
|
671
|
-
</span> <span class='comment'># Doing it anyway b/c we need to get Windows support in place...
|
672
|
-
</span> <span class='comment'># TODO: Implement this feature without clobbering all stubs/mocks
|
673
|
-
</span> <span class='comment'>#Mocha::Mockery.instance.teardown
|
674
|
-
</span><span class='kw'>end</span></pre>
|
675
|
-
</td>
|
676
|
-
</tr>
|
677
|
-
</table>
|
678
|
-
</div>
|
679
|
-
|
680
|
-
<div class="method_details ">
|
681
|
-
<p class="signature " id="as_a_win_nix_system-instance_method">
|
682
|
-
|
683
|
-
- (<tt>Object</tt>) <strong>as_a_win_nix_system</strong> {|sys| ... }
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
</p><div class="docstring">
|
688
|
-
<div class="discussion">
|
689
|
-
|
690
|
-
|
691
|
-
</div>
|
692
|
-
</div>
|
693
|
-
<div class="tags">
|
694
|
-
<h3>Yields:</h3>
|
695
|
-
<ul class="yield">
|
696
|
-
|
697
|
-
<li>
|
698
|
-
|
699
|
-
<span class='type'>(<tt>sys</tt>)</span>
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
</li>
|
705
|
-
|
706
|
-
</ul>
|
707
|
-
|
708
|
-
</div><table class="source_code">
|
709
|
-
<tr>
|
710
|
-
<td>
|
711
|
-
<pre class="lines">
|
712
|
-
|
713
|
-
|
714
|
-
167
|
715
|
-
168
|
716
|
-
169
|
717
|
-
170
|
718
|
-
171
|
719
|
-
172
|
720
|
-
173
|
721
|
-
174
|
722
|
-
175</pre>
|
723
|
-
</td>
|
724
|
-
<td>
|
725
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 167</span>
|
726
|
-
|
727
|
-
<span class='kw'>def</span> <span class='id as_a_win_nix_system'>as_a_win_nix_system</span>
|
728
|
-
<span class='id sys'>sys</span> <span class='op'>=</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>System</span><span class='op'>::</span><span class='const'>WinNixSystem</span><span class='period'>.</span><span class='id new'>new</span>
|
729
|
-
<span class='const'>Sprout</span><span class='op'>::</span><span class='const'>System</span><span class='period'>.</span><span class='id stubs'>stubs</span><span class='lparen'>(</span><span class='symbol'>:create</span><span class='rparen'>)</span><span class='period'>.</span><span class='id returns'>returns</span> <span class='id sys'>sys</span>
|
730
|
-
<span class='kw'>yield</span> <span class='id sys'>sys</span> <span class='kw'>if</span> <span class='id block_given?'>block_given?</span>
|
731
|
-
<span class='comment'># Ugh - This is way too greedy... We're killing all mocks in here
|
732
|
-
</span> <span class='comment'># Doing it anyway b/c we need to get Windows support in place...
|
733
|
-
</span> <span class='comment'># TODO: Implement this feature without clobbering all stubs/mocks
|
734
|
-
</span> <span class='comment'>#Mocha::Mockery.instance.teardown
|
735
|
-
</span><span class='kw'>end</span></pre>
|
736
|
-
</td>
|
737
|
-
</tr>
|
738
|
-
</table>
|
739
|
-
</div>
|
740
|
-
|
741
|
-
<div class="method_details ">
|
742
|
-
<p class="signature " id="as_a_windows_system-instance_method">
|
743
|
-
|
744
|
-
- (<tt>Object</tt>) <strong>as_a_windows_system</strong> {|sys| ... }
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
</p><div class="docstring">
|
749
|
-
<div class="discussion">
|
750
|
-
|
751
|
-
|
752
|
-
</div>
|
753
|
-
</div>
|
754
|
-
<div class="tags">
|
755
|
-
<h3>Yields:</h3>
|
756
|
-
<ul class="yield">
|
757
|
-
|
758
|
-
<li>
|
759
|
-
|
760
|
-
<span class='type'>(<tt>sys</tt>)</span>
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
</li>
|
766
|
-
|
767
|
-
</ul>
|
768
|
-
|
769
|
-
</div><table class="source_code">
|
770
|
-
<tr>
|
771
|
-
<td>
|
772
|
-
<pre class="lines">
|
773
|
-
|
774
|
-
|
775
|
-
157
|
776
|
-
158
|
777
|
-
159
|
778
|
-
160
|
779
|
-
161
|
780
|
-
162
|
781
|
-
163
|
782
|
-
164
|
783
|
-
165</pre>
|
784
|
-
</td>
|
785
|
-
<td>
|
786
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 157</span>
|
787
|
-
|
788
|
-
<span class='kw'>def</span> <span class='id as_a_windows_system'>as_a_windows_system</span>
|
789
|
-
<span class='id sys'>sys</span> <span class='op'>=</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>System</span><span class='op'>::</span><span class='const'>WinSystem</span><span class='period'>.</span><span class='id new'>new</span>
|
790
|
-
<span class='const'>Sprout</span><span class='op'>::</span><span class='const'>System</span><span class='period'>.</span><span class='id stubs'>stubs</span><span class='lparen'>(</span><span class='symbol'>:create</span><span class='rparen'>)</span><span class='period'>.</span><span class='id returns'>returns</span> <span class='id sys'>sys</span>
|
791
|
-
<span class='kw'>yield</span> <span class='id sys'>sys</span> <span class='kw'>if</span> <span class='id block_given?'>block_given?</span>
|
792
|
-
<span class='comment'># Ugh - This is way too greedy... We're killing all mocks in here
|
793
|
-
</span> <span class='comment'># Doing it anyway b/c we need to get Windows support in place...
|
794
|
-
</span> <span class='comment'># TODO: Implement this feature without clobbering all stubs/mocks
|
795
|
-
</span> <span class='comment'>#Mocha::Mockery.instance.teardown
|
796
|
-
</span><span class='kw'>end</span></pre>
|
797
|
-
</td>
|
798
|
-
</tr>
|
799
|
-
</table>
|
800
|
-
</div>
|
801
|
-
|
802
|
-
<div class="method_details ">
|
803
|
-
<p class="signature " id="as_each_system-instance_method">
|
804
|
-
|
805
|
-
- (<tt>Object</tt>) <strong>as_each_system</strong>
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
</p><table class="source_code">
|
810
|
-
<tr>
|
811
|
-
<td>
|
812
|
-
<pre class="lines">
|
813
|
-
|
814
|
-
|
815
|
-
119
|
816
|
-
120
|
817
|
-
121
|
818
|
-
122
|
819
|
-
123
|
820
|
-
124
|
821
|
-
125
|
822
|
-
126
|
823
|
-
127
|
824
|
-
128
|
825
|
-
129
|
826
|
-
130
|
827
|
-
131
|
828
|
-
132
|
829
|
-
133
|
830
|
-
134
|
831
|
-
135</pre>
|
832
|
-
</td>
|
833
|
-
<td>
|
834
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 119</span>
|
835
|
-
|
836
|
-
<span class='kw'>def</span> <span class='id as_each_system'>as_each_system</span>
|
837
|
-
<span class='lbracket'>[</span>
|
838
|
-
<span class='const'>Sprout</span><span class='op'>::</span><span class='const'>System</span><span class='op'>::</span><span class='const'>VistaSystem</span><span class='period'>.</span><span class='id new'>new</span><span class='comma'>,</span>
|
839
|
-
<span class='const'>Sprout</span><span class='op'>::</span><span class='const'>System</span><span class='op'>::</span><span class='const'>WinNixSystem</span><span class='period'>.</span><span class='id new'>new</span><span class='comma'>,</span>
|
840
|
-
<span class='const'>Sprout</span><span class='op'>::</span><span class='const'>System</span><span class='op'>::</span><span class='const'>WinSystem</span><span class='period'>.</span><span class='id new'>new</span><span class='comma'>,</span>
|
841
|
-
<span class='const'>Sprout</span><span class='op'>::</span><span class='const'>System</span><span class='op'>::</span><span class='const'>JavaSystem</span><span class='period'>.</span><span class='id new'>new</span><span class='comma'>,</span>
|
842
|
-
<span class='const'>Sprout</span><span class='op'>::</span><span class='const'>System</span><span class='op'>::</span><span class='const'>OSXSystem</span><span class='period'>.</span><span class='id new'>new</span><span class='comma'>,</span>
|
843
|
-
<span class='const'>Sprout</span><span class='op'>::</span><span class='const'>System</span><span class='op'>::</span><span class='const'>UnixSystem</span><span class='period'>.</span><span class='id new'>new</span>
|
844
|
-
<span class='rbracket'>]</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id sys'>sys</span><span class='op'>|</span>
|
845
|
-
<span class='id expectation'>expectation</span> <span class='op'>=</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>System</span><span class='period'>.</span><span class='id stubs'>stubs</span><span class='lparen'>(</span><span class='symbol'>:create</span><span class='rparen'>)</span><span class='period'>.</span><span class='id returns'>returns</span> <span class='id sys'>sys</span>
|
846
|
-
<span class='kw'>yield</span> <span class='id sys'>sys</span> <span class='kw'>if</span> <span class='id block_given?'>block_given?</span>
|
847
|
-
<span class='comment'># Ugh - This is way too greedy... We're killing all mocks in here
|
848
|
-
</span> <span class='comment'># Doing it anyway b/c we need to get Windows support in place...
|
849
|
-
</span> <span class='comment'># TODO: Implement this feature without clobbering all stubs/mocks
|
850
|
-
</span> <span class='const'>Mocha</span><span class='op'>::</span><span class='const'>Mockery</span><span class='period'>.</span><span class='id instance'>instance</span><span class='period'>.</span><span class='id teardown'>teardown</span>
|
851
|
-
<span class='kw'>end</span>
|
852
|
-
<span class='kw'>end</span></pre>
|
853
|
-
</td>
|
854
|
-
</tr>
|
855
|
-
</table>
|
856
|
-
</div>
|
857
|
-
|
858
|
-
<div class="method_details ">
|
859
|
-
<p class="signature " id="assert_directory-instance_method">
|
860
|
-
|
861
|
-
- (<tt>Object</tt>) <strong>assert_directory</strong>(path, message = nil)
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
</p><table class="source_code">
|
866
|
-
<tr>
|
867
|
-
<td>
|
868
|
-
<pre class="lines">
|
869
|
-
|
870
|
-
|
871
|
-
83
|
872
|
-
84
|
873
|
-
85
|
874
|
-
86</pre>
|
875
|
-
</td>
|
876
|
-
<td>
|
877
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 83</span>
|
878
|
-
|
879
|
-
<span class='kw'>def</span> <span class='id assert_directory'>assert_directory</span><span class='lparen'>(</span><span class='id path'>path</span><span class='comma'>,</span> <span class='id message'>message</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
880
|
-
<span class='id message'>message</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Expected directory not found at </span><span class='embexpr_beg'>#{</span><span class='id path'>path</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
881
|
-
<span class='id assert'>assert</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id directory?'>directory?</span><span class='lparen'>(</span><span class='id path'>path</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id message'>message</span><span class='rparen'>)</span>
|
882
|
-
<span class='kw'>end</span></pre>
|
883
|
-
</td>
|
884
|
-
</tr>
|
885
|
-
</table>
|
886
|
-
</div>
|
887
|
-
|
888
|
-
<div class="method_details ">
|
889
|
-
<p class="signature " id="assert_file-instance_method">
|
890
|
-
|
891
|
-
- (<tt>Object</tt>) <strong>assert_file</strong>(path, message = nil) {|File.read(path)| ... }
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
</p><div class="docstring">
|
896
|
-
<div class="discussion">
|
897
|
-
|
898
|
-
|
899
|
-
</div>
|
900
|
-
</div>
|
901
|
-
<div class="tags">
|
902
|
-
<h3>Yields:</h3>
|
903
|
-
<ul class="yield">
|
904
|
-
|
905
|
-
<li>
|
906
|
-
|
907
|
-
<span class='type'>(<tt>File.read(path)</tt>)</span>
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
</li>
|
913
|
-
|
914
|
-
</ul>
|
915
|
-
|
916
|
-
</div><table class="source_code">
|
917
|
-
<tr>
|
918
|
-
<td>
|
919
|
-
<pre class="lines">
|
920
|
-
|
921
|
-
|
922
|
-
77
|
923
|
-
78
|
924
|
-
79
|
925
|
-
80
|
926
|
-
81</pre>
|
927
|
-
</td>
|
928
|
-
<td>
|
929
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 77</span>
|
930
|
-
|
931
|
-
<span class='kw'>def</span> <span class='id assert_file'>assert_file</span><span class='lparen'>(</span><span class='id path'>path</span><span class='comma'>,</span> <span class='id message'>message</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
932
|
-
<span class='id message'>message</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Expected file not found at </span><span class='embexpr_beg'>#{</span><span class='id path'>path</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
933
|
-
<span class='id assert'>assert</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id exists?'>exists?</span><span class='lparen'>(</span><span class='id path'>path</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id message'>message</span><span class='rparen'>)</span>
|
934
|
-
<span class='kw'>yield</span> <span class='const'>File</span><span class='period'>.</span><span class='id read'>read</span><span class='lparen'>(</span><span class='id path'>path</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id block_given?'>block_given?</span>
|
935
|
-
<span class='kw'>end</span></pre>
|
936
|
-
</td>
|
937
|
-
</tr>
|
938
|
-
</table>
|
939
|
-
</div>
|
940
|
-
|
941
|
-
<div class="method_details ">
|
942
|
-
<p class="signature " id="assert_matches-instance_method">
|
943
|
-
|
944
|
-
- (<tt>Object</tt>) <strong>assert_matches</strong>(expression, string, message = '')
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
</p><table class="source_code">
|
949
|
-
<tr>
|
950
|
-
<td>
|
951
|
-
<pre class="lines">
|
952
|
-
|
953
|
-
|
954
|
-
95
|
955
|
-
96
|
956
|
-
97
|
957
|
-
98
|
958
|
-
99
|
959
|
-
100
|
960
|
-
101
|
961
|
-
102</pre>
|
962
|
-
</td>
|
963
|
-
<td>
|
964
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 95</span>
|
965
|
-
|
966
|
-
<span class='kw'>def</span> <span class='id assert_matches'>assert_matches</span><span class='lparen'>(</span><span class='id expression'>expression</span><span class='comma'>,</span> <span class='id string'>string</span><span class='comma'>,</span> <span class='id message'>message</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
967
|
-
<span class='kw'>if</span><span class='lparen'>(</span><span class='id expression'>expression</span><span class='period'>.</span><span class='id is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
968
|
-
<span class='id expresion'>expresion</span> <span class='op'>=</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='embexpr_beg'>#{</span><span class='id expression'>expression</span><span class='rbrace'>}</span><span class='regexp_end'>/</span></span>
|
969
|
-
<span class='kw'>end</span>
|
970
|
-
<span class='kw'>if</span><span class='lparen'>(</span><span class='op'>!</span><span class='id string'>string</span><span class='period'>.</span><span class='id match'>match</span><span class='lparen'>(</span><span class='id expression'>expression</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
971
|
-
<span class='id fail'>fail</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id message'>message</span><span class='rbrace'>}</span><span class='tstring_content'> - '</span><span class='embexpr_beg'>#{</span><span class='id string'>string</span><span class='rbrace'>}</span><span class='tstring_content'>' should include '</span><span class='embexpr_beg'>#{</span><span class='id expression'>expression</span><span class='rbrace'>}</span><span class='tstring_content'>'</span><span class='tstring_end'>"</span></span>
|
972
|
-
<span class='kw'>end</span>
|
973
|
-
<span class='kw'>end</span></pre>
|
974
|
-
</td>
|
975
|
-
</tr>
|
976
|
-
</table>
|
977
|
-
</div>
|
978
|
-
|
979
|
-
<div class="method_details ">
|
980
|
-
<p class="signature " id="assert_not_empty-instance_method">
|
981
|
-
|
982
|
-
- (<tt>Object</tt>) <strong>assert_not_empty</strong>(path, message = nil)
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
</p><table class="source_code">
|
987
|
-
<tr>
|
988
|
-
<td>
|
989
|
-
<pre class="lines">
|
990
|
-
|
991
|
-
|
992
|
-
88
|
993
|
-
89
|
994
|
-
90
|
995
|
-
91
|
996
|
-
92
|
997
|
-
93</pre>
|
998
|
-
</td>
|
999
|
-
<td>
|
1000
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 88</span>
|
1001
|
-
|
1002
|
-
<span class='kw'>def</span> <span class='id assert_not_empty'>assert_not_empty</span><span class='lparen'>(</span><span class='id path'>path</span><span class='comma'>,</span> <span class='id message'>message</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
1003
|
-
<span class='id assert_file'>assert_file</span> <span class='id path'>path</span><span class='comma'>,</span> <span class='id message'>message</span>
|
1004
|
-
<span class='id files'>files</span> <span class='op'>=</span> <span class='const'>FileList</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id path'>path</span><span class='rbrace'>}</span><span class='tstring_content'>/*</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span>
|
1005
|
-
<span class='id message'>message</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> - Expected </span><span class='embexpr_beg'>#{</span><span class='id path'>path</span><span class='rbrace'>}</span><span class='tstring_content'> to not be empty, but it was</span><span class='tstring_end'>"</span></span>
|
1006
|
-
<span class='id assert'>assert</span> <span class='id files'>files</span><span class='period'>.</span><span class='id size'>size</span> <span class='op'>></span> <span class='int'>0</span><span class='comma'>,</span> <span class='id message'>message</span>
|
1007
|
-
<span class='kw'>end</span></pre>
|
1008
|
-
</td>
|
1009
|
-
</tr>
|
1010
|
-
</table>
|
1011
|
-
</div>
|
1012
|
-
|
1013
|
-
<div class="method_details ">
|
1014
|
-
<p class="signature " id="clear_tasks-instance_method">
|
1015
|
-
|
1016
|
-
- (<tt>Object</tt>) <strong>clear_tasks</strong>
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
</p><table class="source_code">
|
1021
|
-
<tr>
|
1022
|
-
<td>
|
1023
|
-
<pre class="lines">
|
1024
|
-
|
1025
|
-
|
1026
|
-
59
|
1027
|
-
60
|
1028
|
-
61
|
1029
|
-
62
|
1030
|
-
63</pre>
|
1031
|
-
</td>
|
1032
|
-
<td>
|
1033
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 59</span>
|
1034
|
-
|
1035
|
-
<span class='kw'>def</span> <span class='id clear_tasks'>clear_tasks</span>
|
1036
|
-
<span class='const'>CLEAN</span><span class='period'>.</span><span class='id delete_if'>delete_if</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id a'>a</span><span class='op'>|</span> <span class='kw'>true</span> <span class='rbrace'>}</span>
|
1037
|
-
<span class='const'>Rake</span><span class='op'>::</span><span class='const'>Task</span><span class='period'>.</span><span class='id clear'>clear</span>
|
1038
|
-
<span class='const'>Rake</span><span class='period'>.</span><span class='id application'>application</span><span class='period'>.</span><span class='id clear'>clear</span>
|
1039
|
-
<span class='kw'>end</span></pre>
|
1040
|
-
</td>
|
1041
|
-
</tr>
|
1042
|
-
</table>
|
1043
|
-
</div>
|
1044
|
-
|
1045
|
-
<div class="method_details ">
|
1046
|
-
<p class="signature " id="create_file-instance_method">
|
1047
|
-
|
1048
|
-
- (<tt>Object</tt>) <strong>create_file</strong>(path)
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
</p><table class="source_code">
|
1053
|
-
<tr>
|
1054
|
-
<td>
|
1055
|
-
<pre class="lines">
|
1056
|
-
|
1057
|
-
|
1058
|
-
65
|
1059
|
-
66
|
1060
|
-
67
|
1061
|
-
68
|
1062
|
-
69</pre>
|
1063
|
-
</td>
|
1064
|
-
<td>
|
1065
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 65</span>
|
1066
|
-
|
1067
|
-
<span class='kw'>def</span> <span class='id create_file'>create_file</span> <span class='id path'>path</span>
|
1068
|
-
<span class='id dir'>dir</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id dirname'>dirname</span> <span class='id path'>path</span>
|
1069
|
-
<span class='const'>FileUtils</span><span class='period'>.</span><span class='id mkdir_p'>mkdir_p</span> <span class='id dir'>dir</span>
|
1070
|
-
<span class='const'>FileUtils</span><span class='period'>.</span><span class='id touch'>touch</span> <span class='id path'>path</span>
|
1071
|
-
<span class='kw'>end</span></pre>
|
1072
|
-
</td>
|
1073
|
-
</tr>
|
1074
|
-
</table>
|
1075
|
-
</div>
|
1076
|
-
|
1077
|
-
<div class="method_details ">
|
1078
|
-
<p class="signature " id="fixtures-instance_method">
|
1079
|
-
|
1080
|
-
- (<tt>Object</tt>) <strong>fixtures</strong>(from = nil)
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
</p><table class="source_code">
|
1085
|
-
<tr>
|
1086
|
-
<td>
|
1087
|
-
<pre class="lines">
|
1088
|
-
|
1089
|
-
|
1090
|
-
13
|
1091
|
-
14
|
1092
|
-
15</pre>
|
1093
|
-
</td>
|
1094
|
-
<td>
|
1095
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 13</span>
|
1096
|
-
|
1097
|
-
<span class='kw'>def</span> <span class='id fixtures'>fixtures</span> <span class='id from'>from</span><span class='op'>=</span><span class='kw'>nil</span>
|
1098
|
-
<span class='ivar'>@fixtures</span> <span class='op'>||=</span> <span class='id find_fixtures'>find_fixtures</span><span class='lparen'>(</span><span class='id from'>from</span> <span class='op'>||</span> <span class='const'>Sprout</span><span class='period'>.</span><span class='id file_from_caller'>file_from_caller</span><span class='lparen'>(</span><span class='id caller'>caller</span><span class='period'>.</span><span class='id first'>first</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
1099
|
-
<span class='kw'>end</span></pre>
|
1100
|
-
</td>
|
1101
|
-
</tr>
|
1102
|
-
</table>
|
1103
|
-
</div>
|
1104
|
-
|
1105
|
-
<div class="method_details ">
|
1106
|
-
<p class="signature " id="get_task-instance_method">
|
1107
|
-
|
1108
|
-
- (<tt>Object</tt>) <strong>get_task</strong>(name)
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
</p><table class="source_code">
|
1113
|
-
<tr>
|
1114
|
-
<td>
|
1115
|
-
<pre class="lines">
|
1116
|
-
|
1117
|
-
|
1118
|
-
55
|
1119
|
-
56
|
1120
|
-
57</pre>
|
1121
|
-
</td>
|
1122
|
-
<td>
|
1123
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 55</span>
|
1124
|
-
|
1125
|
-
<span class='kw'>def</span> <span class='id get_task'>get_task</span><span class='lparen'>(</span><span class='id name'>name</span><span class='rparen'>)</span>
|
1126
|
-
<span class='kw'>return</span> <span class='const'>Rake</span><span class='period'>.</span><span class='id application'>application</span><span class='lbracket'>[</span><span class='id name'>name</span><span class='rbracket'>]</span>
|
1127
|
-
<span class='kw'>end</span></pre>
|
1128
|
-
</td>
|
1129
|
-
</tr>
|
1130
|
-
</table>
|
1131
|
-
</div>
|
1132
|
-
|
1133
|
-
<div class="method_details ">
|
1134
|
-
<p class="signature " id="make_temp_folder-instance_method">
|
1135
|
-
|
1136
|
-
- (<tt>Object</tt>) <strong>make_temp_folder</strong>(from)
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
</p><table class="source_code">
|
1141
|
-
<tr>
|
1142
|
-
<td>
|
1143
|
-
<pre class="lines">
|
1144
|
-
|
1145
|
-
|
1146
|
-
43
|
1147
|
-
44
|
1148
|
-
45
|
1149
|
-
46
|
1150
|
-
47</pre>
|
1151
|
-
</td>
|
1152
|
-
<td>
|
1153
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 43</span>
|
1154
|
-
|
1155
|
-
<span class='kw'>def</span> <span class='id make_temp_folder'>make_temp_folder</span> <span class='id from'>from</span>
|
1156
|
-
<span class='id dir'>dir</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span><span class='id fixtures'>fixtures</span><span class='lparen'>(</span><span class='id from'>from</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>tmp</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
1157
|
-
<span class='const'>FileUtils</span><span class='period'>.</span><span class='id mkdir_p'>mkdir_p</span> <span class='id dir'>dir</span>
|
1158
|
-
<span class='id dir'>dir</span>
|
1159
|
-
<span class='kw'>end</span></pre>
|
1160
|
-
</td>
|
1161
|
-
</tr>
|
1162
|
-
</table>
|
1163
|
-
</div>
|
1164
|
-
|
1165
|
-
<div class="method_details ">
|
1166
|
-
<p class="signature " id="remove_file-instance_method">
|
1167
|
-
|
1168
|
-
- (<tt>Object</tt>) <strong>remove_file</strong>(path = nil)
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
</p><table class="source_code">
|
1173
|
-
<tr>
|
1174
|
-
<td>
|
1175
|
-
<pre class="lines">
|
1176
|
-
|
1177
|
-
|
1178
|
-
71
|
1179
|
-
72
|
1180
|
-
73
|
1181
|
-
74
|
1182
|
-
75</pre>
|
1183
|
-
</td>
|
1184
|
-
<td>
|
1185
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 71</span>
|
1186
|
-
|
1187
|
-
<span class='kw'>def</span> <span class='id remove_file'>remove_file</span><span class='lparen'>(</span><span class='id path'>path</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
1188
|
-
<span class='kw'>if</span><span class='lparen'>(</span><span class='id path'>path</span> <span class='op'>&&</span> <span class='const'>File</span><span class='period'>.</span><span class='id exists?'>exists?</span><span class='lparen'>(</span><span class='id path'>path</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
1189
|
-
<span class='const'>FileUtils</span><span class='period'>.</span><span class='id rm_rf'>rm_rf</span><span class='lparen'>(</span><span class='id path'>path</span><span class='rparen'>)</span>
|
1190
|
-
<span class='kw'>end</span>
|
1191
|
-
<span class='kw'>end</span></pre>
|
1192
|
-
</td>
|
1193
|
-
</tr>
|
1194
|
-
</table>
|
1195
|
-
</div>
|
1196
|
-
|
1197
|
-
<div class="method_details ">
|
1198
|
-
<p class="signature " id="run_task-instance_method">
|
1199
|
-
|
1200
|
-
- (<tt>Object</tt>) <strong>run_task</strong>(name)
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
</p><table class="source_code">
|
1205
|
-
<tr>
|
1206
|
-
<td>
|
1207
|
-
<pre class="lines">
|
1208
|
-
|
1209
|
-
|
1210
|
-
49
|
1211
|
-
50
|
1212
|
-
51
|
1213
|
-
52
|
1214
|
-
53</pre>
|
1215
|
-
</td>
|
1216
|
-
<td>
|
1217
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 49</span>
|
1218
|
-
|
1219
|
-
<span class='kw'>def</span> <span class='id run_task'>run_task</span><span class='lparen'>(</span><span class='id name'>name</span><span class='rparen'>)</span>
|
1220
|
-
<span class='id t'>t</span> <span class='op'>=</span> <span class='const'>Rake</span><span class='period'>.</span><span class='id application'>application</span><span class='lbracket'>[</span><span class='id name'>name</span><span class='rbracket'>]</span>
|
1221
|
-
<span class='id t'>t</span><span class='period'>.</span><span class='id invoke'>invoke</span>
|
1222
|
-
<span class='kw'>return</span> <span class='id t'>t</span>
|
1223
|
-
<span class='kw'>end</span></pre>
|
1224
|
-
</td>
|
1225
|
-
</tr>
|
1226
|
-
</table>
|
1227
|
-
</div>
|
1228
|
-
|
1229
|
-
<div class="method_details ">
|
1230
|
-
<p class="signature " id="setup-instance_method">
|
1231
|
-
|
1232
|
-
- (<tt>Object</tt>) <strong>setup</strong>
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
</p><table class="source_code">
|
1237
|
-
<tr>
|
1238
|
-
<td>
|
1239
|
-
<pre class="lines">
|
1240
|
-
|
1241
|
-
|
1242
|
-
17
|
1243
|
-
18
|
1244
|
-
19
|
1245
|
-
20</pre>
|
1246
|
-
</td>
|
1247
|
-
<td>
|
1248
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 17</span>
|
1249
|
-
|
1250
|
-
<span class='kw'>def</span> <span class='id setup'>setup</span>
|
1251
|
-
<span class='kw'>super</span>
|
1252
|
-
<span class='ivar'>@start_path</span> <span class='op'>=</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id pwd'>pwd</span>
|
1253
|
-
<span class='kw'>end</span></pre>
|
1254
|
-
</td>
|
1255
|
-
</tr>
|
1256
|
-
</table>
|
1257
|
-
</div>
|
1258
|
-
|
1259
|
-
<div class="method_details ">
|
1260
|
-
<p class="signature " id="skip-instance_method">
|
1261
|
-
|
1262
|
-
- (<tt>Object</tt>) <strong>skip</strong>(message = "")
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
</p><table class="source_code">
|
1267
|
-
<tr>
|
1268
|
-
<td>
|
1269
|
-
<pre class="lines">
|
1270
|
-
|
1271
|
-
|
1272
|
-
108
|
1273
|
-
109
|
1274
|
-
110
|
1275
|
-
111</pre>
|
1276
|
-
</td>
|
1277
|
-
<td>
|
1278
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 108</span>
|
1279
|
-
|
1280
|
-
<span class='kw'>def</span> <span class='id skip'>skip</span> <span class='id message'>message</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
1281
|
-
<span class='id puts'>puts</span>
|
1282
|
-
<span class='id puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>>> SproutTestCase.skip called from: </span><span class='embexpr_beg'>#{</span><span class='id caller'>caller</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_content'> ( </span><span class='embexpr_beg'>#{</span><span class='id message'>message</span><span class='rbrace'>}</span><span class='tstring_content'> )</span><span class='tstring_end'>"</span></span>
|
1283
|
-
<span class='kw'>end</span></pre>
|
1284
|
-
</td>
|
1285
|
-
</tr>
|
1286
|
-
</table>
|
1287
|
-
</div>
|
1288
|
-
|
1289
|
-
<div class="method_details ">
|
1290
|
-
<p class="signature " id="teardown-instance_method">
|
1291
|
-
|
1292
|
-
- (<tt>Object</tt>) <strong>teardown</strong>
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
</p><table class="source_code">
|
1297
|
-
<tr>
|
1298
|
-
<td>
|
1299
|
-
<pre class="lines">
|
1300
|
-
|
1301
|
-
|
1302
|
-
22
|
1303
|
-
23
|
1304
|
-
24
|
1305
|
-
25
|
1306
|
-
26
|
1307
|
-
27
|
1308
|
-
28
|
1309
|
-
29
|
1310
|
-
30
|
1311
|
-
31
|
1312
|
-
32
|
1313
|
-
33
|
1314
|
-
34
|
1315
|
-
35
|
1316
|
-
36</pre>
|
1317
|
-
</td>
|
1318
|
-
<td>
|
1319
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 22</span>
|
1320
|
-
|
1321
|
-
<span class='kw'>def</span> <span class='id teardown'>teardown</span>
|
1322
|
-
<span class='kw'>super</span>
|
1323
|
-
<span class='id clear_tasks'>clear_tasks</span>
|
1324
|
-
|
1325
|
-
<span class='id remove_file'>remove_file</span> <span class='ivar'>@temp_path</span>
|
1326
|
-
<span class='id remove_file'>remove_file</span> <span class='ivar'>@temp_cache</span>
|
1327
|
-
|
1328
|
-
<span class='ivar'>@temp_path</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
1329
|
-
<span class='ivar'>@temp_cache</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
1330
|
-
|
1331
|
-
<span class='kw'>if</span><span class='lparen'>(</span><span class='ivar'>@start_path</span> <span class='op'>&&</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id pwd'>pwd</span> <span class='op'>!=</span> <span class='ivar'>@start_path</span><span class='rparen'>)</span>
|
1332
|
-
<span class='id puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>[WARNING] >> SproutTestCase changing dir from </span><span class='embexpr_beg'>#{</span><span class='const'>Dir</span><span class='period'>.</span><span class='id pwd'>pwd</span><span class='rbrace'>}</span><span class='tstring_content'> back to: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@start_path</span><span class='rbrace'>}</span><span class='tstring_content'> - Did you mean to leave your working directory in a new place?</span><span class='tstring_end'>"</span></span>
|
1333
|
-
<span class='const'>Dir</span><span class='period'>.</span><span class='id chdir'>chdir</span> <span class='ivar'>@start_path</span>
|
1334
|
-
<span class='kw'>end</span>
|
1335
|
-
<span class='kw'>end</span></pre>
|
1336
|
-
</td>
|
1337
|
-
</tr>
|
1338
|
-
</table>
|
1339
|
-
</div>
|
1340
|
-
|
1341
|
-
<div class="method_details ">
|
1342
|
-
<p class="signature " id="temp_cache-instance_method">
|
1343
|
-
|
1344
|
-
- (<tt>Object</tt>) <strong>temp_cache</strong>
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
</p><table class="source_code">
|
1349
|
-
<tr>
|
1350
|
-
<td>
|
1351
|
-
<pre class="lines">
|
1352
|
-
|
1353
|
-
|
1354
|
-
114
|
1355
|
-
115
|
1356
|
-
116
|
1357
|
-
117</pre>
|
1358
|
-
</td>
|
1359
|
-
<td>
|
1360
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 114</span>
|
1361
|
-
|
1362
|
-
<span class='kw'>def</span> <span class='id temp_cache'>temp_cache</span>
|
1363
|
-
<span class='id dir'>dir</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id dirname'>dirname</span><span class='lparen'>(</span><span class='const'>Sprout</span><span class='period'>.</span><span class='id file_from_caller'>file_from_caller</span><span class='lparen'>(</span><span class='id caller'>caller</span><span class='period'>.</span><span class='id first'>first</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
1364
|
-
<span class='ivar'>@temp_cache</span> <span class='op'>||=</span> <span class='const'>File</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span><span class='id fixtures'>fixtures</span><span class='lparen'>(</span><span class='id dir'>dir</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sprout</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cache</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
1365
|
-
<span class='kw'>end</span></pre>
|
1366
|
-
</td>
|
1367
|
-
</tr>
|
1368
|
-
</table>
|
1369
|
-
</div>
|
1370
|
-
|
1371
|
-
<div class="method_details ">
|
1372
|
-
<p class="signature " id="temp_path-instance_method">
|
1373
|
-
|
1374
|
-
- (<tt>Object</tt>) <strong>temp_path</strong>
|
1375
|
-
|
1376
|
-
|
1377
|
-
|
1378
|
-
</p><table class="source_code">
|
1379
|
-
<tr>
|
1380
|
-
<td>
|
1381
|
-
<pre class="lines">
|
1382
|
-
|
1383
|
-
|
1384
|
-
38
|
1385
|
-
39
|
1386
|
-
40
|
1387
|
-
41</pre>
|
1388
|
-
</td>
|
1389
|
-
<td>
|
1390
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/test/sprout_test_case.rb', line 38</span>
|
1391
|
-
|
1392
|
-
<span class='kw'>def</span> <span class='id temp_path'>temp_path</span>
|
1393
|
-
<span class='id caller_file'>caller_file</span> <span class='op'>=</span> <span class='const'>Sprout</span><span class='period'>.</span><span class='id file_from_caller'>file_from_caller</span> <span class='id caller'>caller</span><span class='period'>.</span><span class='id first'>first</span>
|
1394
|
-
<span class='ivar'>@temp_path</span> <span class='op'>||=</span> <span class='id make_temp_folder'>make_temp_folder</span> <span class='const'>File</span><span class='period'>.</span><span class='id dirname'>dirname</span><span class='lparen'>(</span><span class='id caller_file'>caller_file</span><span class='rparen'>)</span>
|
1395
|
-
<span class='kw'>end</span></pre>
|
1396
|
-
</td>
|
1397
|
-
</tr>
|
1398
|
-
</table>
|
1399
|
-
</div>
|
1400
|
-
|
1401
|
-
</div>
|
1402
|
-
|
1403
|
-
</div>
|
1404
|
-
|
1405
|
-
<div id="footer">
|
1406
|
-
Generated on Wed Dec 22 11:58:36 2010 by
|
1407
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1408
|
-
0.6.3 (ruby-1.9.2).
|
1409
|
-
</div>
|
1410
|
-
|
1411
|
-
</body>
|
1412
|
-
</html>
|