vermillion-client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.hound.yml +2 -0
- data/.rubocop.yml +320 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +26 -0
- data/README.md +55 -0
- data/Rakefile +10 -0
- data/bin/setup +7 -0
- data/bin/vermillion +16 -0
- data/doc/ChangeBranchTest.html +240 -0
- data/doc/ConfigurationTest.html +277 -0
- data/doc/CreateTest.html +240 -0
- data/doc/Gemfile.html +145 -0
- data/doc/Gemfile_lock.html +173 -0
- data/doc/README_md.html +216 -0
- data/doc/Rakefile.html +151 -0
- data/doc/UpdateTest.html +280 -0
- data/doc/Vermillion.html +272 -0
- data/doc/Vermillion/Cfg.html +362 -0
- data/doc/Vermillion/Controller.html +185 -0
- data/doc/Vermillion/Controller/Base.html +503 -0
- data/doc/Vermillion/Controller/Change.html +301 -0
- data/doc/Vermillion/Controller/Create.html +301 -0
- data/doc/Vermillion/Controller/Firstrun.html +256 -0
- data/doc/Vermillion/Controller/Status.html +308 -0
- data/doc/Vermillion/Controller/Update.html +326 -0
- data/doc/Vermillion/Helper.html +252 -0
- data/doc/Vermillion/Helper/ApiCommunication.html +307 -0
- data/doc/Vermillion/Helper/Endpoint.html +506 -0
- data/doc/Vermillion/Helper/Formatting.html +250 -0
- data/doc/Vermillion/Helper/Network.html +304 -0
- data/doc/Vermillion/Helper/Results.html +341 -0
- data/doc/Vermillion/Helper/Time.html +295 -0
- data/doc/Vermillion/Request.html +332 -0
- data/doc/Vermillion/Router.html +351 -0
- data/doc/Vermillion/Test.html +183 -0
- data/doc/Vermillion/Test/Base.html +260 -0
- data/doc/Vermillion/Utils.html +247 -0
- data/doc/bin/setup.html +147 -0
- data/doc/created.rid +33 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +138 -0
- data/doc/js/darkfish.js +155 -0
- data/doc/js/jquery.js +4 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/rdoc.css +595 -0
- data/doc/table_of_contents.html +255 -0
- data/doc/vermillion-client_gemspec.html +166 -0
- data/lib/client.rb +35 -0
- data/lib/client/config.rb +58 -0
- data/lib/client/controller.rb +68 -0
- data/lib/client/controller/change.rb +26 -0
- data/lib/client/controller/create.rb +26 -0
- data/lib/client/controller/firstrun.rb +30 -0
- data/lib/client/controller/status.rb +43 -0
- data/lib/client/controller/update.rb +26 -0
- data/lib/client/helper.rb +21 -0
- data/lib/client/helper/apicommunication.rb +78 -0
- data/lib/client/helper/endpoint.rb +61 -0
- data/lib/client/helper/formatting.rb +23 -0
- data/lib/client/helper/network.rb +54 -0
- data/lib/client/helper/results.rb +28 -0
- data/lib/client/helper/time.rb +33 -0
- data/lib/client/request.rb +22 -0
- data/lib/client/router.rb +56 -0
- data/lib/client/utils.rb +18 -0
- data/lib/client/version.rb +4 -0
- data/lib/test.rb +13 -0
- data/lib/test/base.rb +17 -0
- data/test/test_change_branch.rb +14 -0
- data/test/test_configuration.rb +21 -0
- data/test/test_create.rb +14 -0
- data/test/test_update.rb +24 -0
- data/vermillion-client.gemspec +23 -0
- metadata +201 -0
@@ -0,0 +1,240 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class ChangeBranchTest - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
<div id="file-metadata">
|
49
|
+
<nav id="file-list-section" class="section">
|
50
|
+
<h3 class="section-header">Defined In</h3>
|
51
|
+
<ul>
|
52
|
+
<li>test/test_change_branch.rb
|
53
|
+
</ul>
|
54
|
+
</nav>
|
55
|
+
|
56
|
+
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<div id="class-metadata">
|
60
|
+
|
61
|
+
<nav id="parent-class-section" class="section">
|
62
|
+
<h3 class="section-header">Parent</h3>
|
63
|
+
|
64
|
+
<p class="link"><a href="Vermillion/Test/Base.html">Vermillion::Test::Base</a>
|
65
|
+
|
66
|
+
</nav>
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
71
|
+
<nav id="method-list-section" class="section">
|
72
|
+
<h3 class="section-header">Methods</h3>
|
73
|
+
|
74
|
+
<ul class="link-list">
|
75
|
+
|
76
|
+
<li ><a href="#method-i-test_change_branch_one">#test_change_branch_one</a>
|
77
|
+
|
78
|
+
</ul>
|
79
|
+
</nav>
|
80
|
+
|
81
|
+
</div>
|
82
|
+
|
83
|
+
<div id="project-metadata">
|
84
|
+
<nav id="fileindex-section" class="section project-section">
|
85
|
+
<h3 class="section-header">Pages</h3>
|
86
|
+
|
87
|
+
<ul>
|
88
|
+
|
89
|
+
<li class="file"><a href="./Gemfile.html">Gemfile</a>
|
90
|
+
|
91
|
+
<li class="file"><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
92
|
+
|
93
|
+
<li class="file"><a href="./README_md.html">README</a>
|
94
|
+
|
95
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a>
|
96
|
+
|
97
|
+
<li class="file"><a href="./bin/setup.html">setup</a>
|
98
|
+
|
99
|
+
<li class="file"><a href="./vermillion-client_gemspec.html">vermillion-client.gemspec</a>
|
100
|
+
|
101
|
+
</ul>
|
102
|
+
</nav>
|
103
|
+
|
104
|
+
<nav id="classindex-section" class="section project-section">
|
105
|
+
<h3 class="section-header">Class and Module Index</h3>
|
106
|
+
|
107
|
+
<ul class="link-list">
|
108
|
+
|
109
|
+
<li><a href="./ChangeBranchTest.html">ChangeBranchTest</a>
|
110
|
+
|
111
|
+
<li><a href="./ConfigurationTest.html">ConfigurationTest</a>
|
112
|
+
|
113
|
+
<li><a href="./CreateTest.html">CreateTest</a>
|
114
|
+
|
115
|
+
<li><a href="./UpdateTest.html">UpdateTest</a>
|
116
|
+
|
117
|
+
<li><a href="./Vermillion.html">Vermillion</a>
|
118
|
+
|
119
|
+
<li><a href="./Vermillion/Cfg.html">Vermillion::Cfg</a>
|
120
|
+
|
121
|
+
<li><a href="./Vermillion/Controller.html">Vermillion::Controller</a>
|
122
|
+
|
123
|
+
<li><a href="./Vermillion/Controller/Base.html">Vermillion::Controller::Base</a>
|
124
|
+
|
125
|
+
<li><a href="./Vermillion/Controller/Change.html">Vermillion::Controller::Change</a>
|
126
|
+
|
127
|
+
<li><a href="./Vermillion/Controller/Create.html">Vermillion::Controller::Create</a>
|
128
|
+
|
129
|
+
<li><a href="./Vermillion/Controller/Firstrun.html">Vermillion::Controller::Firstrun</a>
|
130
|
+
|
131
|
+
<li><a href="./Vermillion/Controller/Status.html">Vermillion::Controller::Status</a>
|
132
|
+
|
133
|
+
<li><a href="./Vermillion/Controller/Update.html">Vermillion::Controller::Update</a>
|
134
|
+
|
135
|
+
<li><a href="./Vermillion/Helper.html">Vermillion::Helper</a>
|
136
|
+
|
137
|
+
<li><a href="./Vermillion/Helper/ApiCommunication.html">Vermillion::Helper::ApiCommunication</a>
|
138
|
+
|
139
|
+
<li><a href="./Vermillion/Helper/Endpoint.html">Vermillion::Helper::Endpoint</a>
|
140
|
+
|
141
|
+
<li><a href="./Vermillion/Helper/Formatting.html">Vermillion::Helper::Formatting</a>
|
142
|
+
|
143
|
+
<li><a href="./Vermillion/Helper/Network.html">Vermillion::Helper::Network</a>
|
144
|
+
|
145
|
+
<li><a href="./Vermillion/Helper/Results.html">Vermillion::Helper::Results</a>
|
146
|
+
|
147
|
+
<li><a href="./Vermillion/Helper/Time.html">Vermillion::Helper::Time</a>
|
148
|
+
|
149
|
+
<li><a href="./Vermillion/Request.html">Vermillion::Request</a>
|
150
|
+
|
151
|
+
<li><a href="./Vermillion/Router.html">Vermillion::Router</a>
|
152
|
+
|
153
|
+
<li><a href="./Vermillion/Test.html">Vermillion::Test</a>
|
154
|
+
|
155
|
+
<li><a href="./Vermillion/Test/Base.html">Vermillion::Test::Base</a>
|
156
|
+
|
157
|
+
<li><a href="./Vermillion/Utils.html">Vermillion::Utils</a>
|
158
|
+
|
159
|
+
</ul>
|
160
|
+
</nav>
|
161
|
+
|
162
|
+
</div>
|
163
|
+
</nav>
|
164
|
+
|
165
|
+
<div id="documentation">
|
166
|
+
<h1 class="class">class ChangeBranchTest</h1>
|
167
|
+
|
168
|
+
<div id="description" class="description">
|
169
|
+
|
170
|
+
</div><!-- description -->
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
<!-- Methods -->
|
185
|
+
|
186
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
187
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
188
|
+
|
189
|
+
|
190
|
+
<div id="method-i-test_change_branch_one" class="method-detail ">
|
191
|
+
|
192
|
+
<div class="method-heading">
|
193
|
+
<span class="method-name">test_change_branch_one</span><span
|
194
|
+
class="method-args">()</span>
|
195
|
+
|
196
|
+
<span class="method-click-advice">click to toggle source</span>
|
197
|
+
|
198
|
+
</div>
|
199
|
+
|
200
|
+
|
201
|
+
<div class="method-description">
|
202
|
+
|
203
|
+
<p>Test changing a branch on one server</p>
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
<div class="method-source-code" id="test_change_branch_one-source">
|
209
|
+
<pre><span class="ruby-comment"># File test/test_change_branch.rb, line 6</span>
|
210
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">test_change_branch_one</span>
|
211
|
+
<span class="ruby-identifier">req</span> = <span class="ruby-constant">MockRequest</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:change</span>, <span class="ruby-value">:branch</span>)
|
212
|
+
<span class="ruby-identifier">cfg</span> = <span class="ruby-constant">Vermillion</span><span class="ruby-operator">::</span><span class="ruby-constant">Cfg</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">populate_config</span>
|
213
|
+
|
214
|
+
<span class="ruby-identifier">change</span> = <span class="ruby-constant">Change</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">cfg</span>, <span class="ruby-identifier">req</span>)
|
215
|
+
|
216
|
+
<span class="ruby-identifier">assert</span> <span class="ruby-identifier">change</span>.<span class="ruby-identifier">branch</span>(<span class="ruby-value">:local</span>, <span class="ruby-value">:master</span>).<span class="ruby-identifier">zero?</span>
|
217
|
+
<span class="ruby-keyword">end</span></pre>
|
218
|
+
</div><!-- test_change_branch_one-source -->
|
219
|
+
|
220
|
+
</div>
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
</div><!-- test_change_branch_one-method -->
|
226
|
+
|
227
|
+
|
228
|
+
</section><!-- public-instance-method-details -->
|
229
|
+
|
230
|
+
</section><!-- 5Buntitled-5D -->
|
231
|
+
|
232
|
+
</div><!-- documentation -->
|
233
|
+
|
234
|
+
|
235
|
+
<footer id="validator-badges">
|
236
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
237
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
|
238
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
239
|
+
</footer>
|
240
|
+
|
@@ -0,0 +1,277 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class ConfigurationTest - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
<div id="file-metadata">
|
49
|
+
<nav id="file-list-section" class="section">
|
50
|
+
<h3 class="section-header">Defined In</h3>
|
51
|
+
<ul>
|
52
|
+
<li>test/test_configuration.rb
|
53
|
+
</ul>
|
54
|
+
</nav>
|
55
|
+
|
56
|
+
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<div id="class-metadata">
|
60
|
+
|
61
|
+
<nav id="parent-class-section" class="section">
|
62
|
+
<h3 class="section-header">Parent</h3>
|
63
|
+
|
64
|
+
<p class="link"><a href="Vermillion/Test/Base.html">Vermillion::Test::Base</a>
|
65
|
+
|
66
|
+
</nav>
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
71
|
+
<nav id="method-list-section" class="section">
|
72
|
+
<h3 class="section-header">Methods</h3>
|
73
|
+
|
74
|
+
<ul class="link-list">
|
75
|
+
|
76
|
+
<li ><a href="#method-i-test_config_exist">#test_config_exist</a>
|
77
|
+
|
78
|
+
<li ><a href="#method-i-test_default">#test_default</a>
|
79
|
+
|
80
|
+
</ul>
|
81
|
+
</nav>
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="project-metadata">
|
86
|
+
<nav id="fileindex-section" class="section project-section">
|
87
|
+
<h3 class="section-header">Pages</h3>
|
88
|
+
|
89
|
+
<ul>
|
90
|
+
|
91
|
+
<li class="file"><a href="./Gemfile.html">Gemfile</a>
|
92
|
+
|
93
|
+
<li class="file"><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
94
|
+
|
95
|
+
<li class="file"><a href="./README_md.html">README</a>
|
96
|
+
|
97
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a>
|
98
|
+
|
99
|
+
<li class="file"><a href="./bin/setup.html">setup</a>
|
100
|
+
|
101
|
+
<li class="file"><a href="./vermillion-client_gemspec.html">vermillion-client.gemspec</a>
|
102
|
+
|
103
|
+
</ul>
|
104
|
+
</nav>
|
105
|
+
|
106
|
+
<nav id="classindex-section" class="section project-section">
|
107
|
+
<h3 class="section-header">Class and Module Index</h3>
|
108
|
+
|
109
|
+
<ul class="link-list">
|
110
|
+
|
111
|
+
<li><a href="./ChangeBranchTest.html">ChangeBranchTest</a>
|
112
|
+
|
113
|
+
<li><a href="./ConfigurationTest.html">ConfigurationTest</a>
|
114
|
+
|
115
|
+
<li><a href="./CreateTest.html">CreateTest</a>
|
116
|
+
|
117
|
+
<li><a href="./UpdateTest.html">UpdateTest</a>
|
118
|
+
|
119
|
+
<li><a href="./Vermillion.html">Vermillion</a>
|
120
|
+
|
121
|
+
<li><a href="./Vermillion/Cfg.html">Vermillion::Cfg</a>
|
122
|
+
|
123
|
+
<li><a href="./Vermillion/Controller.html">Vermillion::Controller</a>
|
124
|
+
|
125
|
+
<li><a href="./Vermillion/Controller/Base.html">Vermillion::Controller::Base</a>
|
126
|
+
|
127
|
+
<li><a href="./Vermillion/Controller/Change.html">Vermillion::Controller::Change</a>
|
128
|
+
|
129
|
+
<li><a href="./Vermillion/Controller/Create.html">Vermillion::Controller::Create</a>
|
130
|
+
|
131
|
+
<li><a href="./Vermillion/Controller/Firstrun.html">Vermillion::Controller::Firstrun</a>
|
132
|
+
|
133
|
+
<li><a href="./Vermillion/Controller/Status.html">Vermillion::Controller::Status</a>
|
134
|
+
|
135
|
+
<li><a href="./Vermillion/Controller/Update.html">Vermillion::Controller::Update</a>
|
136
|
+
|
137
|
+
<li><a href="./Vermillion/Helper.html">Vermillion::Helper</a>
|
138
|
+
|
139
|
+
<li><a href="./Vermillion/Helper/ApiCommunication.html">Vermillion::Helper::ApiCommunication</a>
|
140
|
+
|
141
|
+
<li><a href="./Vermillion/Helper/Endpoint.html">Vermillion::Helper::Endpoint</a>
|
142
|
+
|
143
|
+
<li><a href="./Vermillion/Helper/Formatting.html">Vermillion::Helper::Formatting</a>
|
144
|
+
|
145
|
+
<li><a href="./Vermillion/Helper/Network.html">Vermillion::Helper::Network</a>
|
146
|
+
|
147
|
+
<li><a href="./Vermillion/Helper/Results.html">Vermillion::Helper::Results</a>
|
148
|
+
|
149
|
+
<li><a href="./Vermillion/Helper/Time.html">Vermillion::Helper::Time</a>
|
150
|
+
|
151
|
+
<li><a href="./Vermillion/Request.html">Vermillion::Request</a>
|
152
|
+
|
153
|
+
<li><a href="./Vermillion/Router.html">Vermillion::Router</a>
|
154
|
+
|
155
|
+
<li><a href="./Vermillion/Test.html">Vermillion::Test</a>
|
156
|
+
|
157
|
+
<li><a href="./Vermillion/Test/Base.html">Vermillion::Test::Base</a>
|
158
|
+
|
159
|
+
<li><a href="./Vermillion/Utils.html">Vermillion::Utils</a>
|
160
|
+
|
161
|
+
</ul>
|
162
|
+
</nav>
|
163
|
+
|
164
|
+
</div>
|
165
|
+
</nav>
|
166
|
+
|
167
|
+
<div id="documentation">
|
168
|
+
<h1 class="class">class ConfigurationTest</h1>
|
169
|
+
|
170
|
+
<div id="description" class="description">
|
171
|
+
|
172
|
+
</div><!-- description -->
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
<!-- Methods -->
|
187
|
+
|
188
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
189
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
190
|
+
|
191
|
+
|
192
|
+
<div id="method-i-test_config_exist" class="method-detail ">
|
193
|
+
|
194
|
+
<div class="method-heading">
|
195
|
+
<span class="method-name">test_config_exist</span><span
|
196
|
+
class="method-args">()</span>
|
197
|
+
|
198
|
+
<span class="method-click-advice">click to toggle source</span>
|
199
|
+
|
200
|
+
</div>
|
201
|
+
|
202
|
+
|
203
|
+
<div class="method-description">
|
204
|
+
|
205
|
+
<p>Test if the config file exists</p>
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
<div class="method-source-code" id="test_config_exist-source">
|
211
|
+
<pre><span class="ruby-comment"># File test/test_configuration.rb, line 6</span>
|
212
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">test_config_exist</span>
|
213
|
+
<span class="ruby-identifier">path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-string">"~/.vermillion.yml"</span>)
|
214
|
+
|
215
|
+
<span class="ruby-identifier">assert</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span> <span class="ruby-identifier">path</span>
|
216
|
+
<span class="ruby-keyword">end</span></pre>
|
217
|
+
</div><!-- test_config_exist-source -->
|
218
|
+
|
219
|
+
</div>
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
</div><!-- test_config_exist-method -->
|
225
|
+
|
226
|
+
|
227
|
+
<div id="method-i-test_default" class="method-detail ">
|
228
|
+
|
229
|
+
<div class="method-heading">
|
230
|
+
<span class="method-name">test_default</span><span
|
231
|
+
class="method-args">()</span>
|
232
|
+
|
233
|
+
<span class="method-click-advice">click to toggle source</span>
|
234
|
+
|
235
|
+
</div>
|
236
|
+
|
237
|
+
|
238
|
+
<div class="method-description">
|
239
|
+
|
240
|
+
<p>Test the default method</p>
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
<div class="method-source-code" id="test_default-source">
|
246
|
+
<pre><span class="ruby-comment"># File test/test_configuration.rb, line 13</span>
|
247
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">test_default</span>
|
248
|
+
<span class="ruby-identifier">req</span> = <span class="ruby-constant">MockRequest</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:status</span>, <span class="ruby-value">:default</span>)
|
249
|
+
<span class="ruby-identifier">cfg</span> = <span class="ruby-constant">Vermillion</span><span class="ruby-operator">::</span><span class="ruby-constant">Cfg</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">populate_config</span>
|
250
|
+
|
251
|
+
<span class="ruby-identifier">status</span> = <span class="ruby-constant">Status</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">cfg</span>, <span class="ruby-identifier">req</span>)
|
252
|
+
|
253
|
+
<span class="ruby-identifier">assert</span> <span class="ruby-identifier">status</span>.<span class="ruby-identifier">default</span>.<span class="ruby-identifier">zero?</span>
|
254
|
+
<span class="ruby-keyword">end</span></pre>
|
255
|
+
</div><!-- test_default-source -->
|
256
|
+
|
257
|
+
</div>
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
</div><!-- test_default-method -->
|
263
|
+
|
264
|
+
|
265
|
+
</section><!-- public-instance-method-details -->
|
266
|
+
|
267
|
+
</section><!-- 5Buntitled-5D -->
|
268
|
+
|
269
|
+
</div><!-- documentation -->
|
270
|
+
|
271
|
+
|
272
|
+
<footer id="validator-badges">
|
273
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
274
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
|
275
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
276
|
+
</footer>
|
277
|
+
|