rest_baby 0.1 → 0.2
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
- data/ChangeLog +13 -0
- data/README.md +2 -2
- data/Rakefile +8 -1
- data/doc/MockRestService.html +351 -0
- data/doc/PinchRestService.html +349 -0
- data/doc/RestBaby/Client.html +936 -0
- data/doc/RestBaby.html +170 -0
- data/doc/_index.html +182 -0
- data/doc/class_list.html +74 -0
- data/doc/css/common.css +1 -0
- data/doc/css/cucumber.css +227 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +338 -0
- data/doc/feature_list.html +245 -0
- data/doc/featuredirectories_list.html +179 -0
- data/doc/file.README.html +134 -0
- data/doc/file_list.html +76 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +134 -0
- data/doc/js/app.js +214 -0
- data/doc/js/cucumber.js +305 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +169 -0
- data/doc/requirements/features/header_options.html +1020 -0
- data/doc/requirements/features/headers/header_options.html +1020 -0
- data/doc/requirements/features/headers.html +157 -0
- data/doc/requirements/features/print_response.html +969 -0
- data/doc/requirements/features/rest_client.html +835 -0
- data/doc/requirements/features.html +199 -0
- data/doc/requirements/step_transformers.html +1508 -0
- data/doc/requirements/tags/authentication.html +169 -0
- data/doc/requirements/tags/core.html +187 -0
- data/doc/requirements/tags/delete.html +169 -0
- data/doc/requirements/tags/extended.html +223 -0
- data/doc/requirements/tags/get.html +178 -0
- data/doc/requirements/tags/headers.html +169 -0
- data/doc/requirements/tags/post.html +196 -0
- data/doc/requirements/tags/print.html +187 -0
- data/doc/requirements/tags/put.html +169 -0
- data/doc/requirements/tags.html +408 -0
- data/doc/requirements.html +213 -0
- data/doc/step_list.html +825 -0
- data/doc/stepdefinition_list.html +230 -0
- data/doc/tag_list.html +131 -0
- data/doc/top-level-namespace.html +244 -0
- data/features/{header_options.feature → headers/header_options.feature} +0 -0
- data/features/step_definitions/rest_client_steps.rb +5 -4
- data/features/support/env.rb +1 -18
- data/features/support/mock_rest_service.rb +1 -1
- data/lib/rest_baby/version.rb +1 -1
- data/lib/rest_baby.rb +62 -35
- metadata +49 -5
- data/LICENSE +0 -24
@@ -0,0 +1,230 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
|
7
|
+
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
16
|
+
|
17
|
+
|
18
|
+
<title>Step Definitions List</title>
|
19
|
+
<base id="base_target" target="_parent" />
|
20
|
+
</head>
|
21
|
+
<body>
|
22
|
+
<script type="text/javascript" charset="utf-8">
|
23
|
+
if (window.top.frames.main) {
|
24
|
+
document.getElementById('base_target').target = 'main';
|
25
|
+
document.body.className = 'frames';
|
26
|
+
}
|
27
|
+
</script>
|
28
|
+
<div id="content">
|
29
|
+
<h1 id="full_list_header">Step Definitions List</h1>
|
30
|
+
<div id="nav">
|
31
|
+
|
32
|
+
<span><a target="_self" href="feature_list.html">
|
33
|
+
Features
|
34
|
+
</a></span>
|
35
|
+
|
36
|
+
<span><a target="_self" href="featuredirectories_list.html">
|
37
|
+
Features by Directory
|
38
|
+
</a></span>
|
39
|
+
|
40
|
+
<span><a target="_self" href="tag_list.html">
|
41
|
+
Tags
|
42
|
+
</a></span>
|
43
|
+
|
44
|
+
<span><a target="_self" href="step_list.html">
|
45
|
+
Steps
|
46
|
+
</a></span>
|
47
|
+
|
48
|
+
<span><a target="_self" href="stepdefinition_list.html">
|
49
|
+
Step Definitions
|
50
|
+
</a></span>
|
51
|
+
|
52
|
+
<span><a target="_self" href="class_list.html">
|
53
|
+
Classes
|
54
|
+
</a></span>
|
55
|
+
|
56
|
+
<span><a target="_self" href="method_list.html">
|
57
|
+
Methods
|
58
|
+
</a></span>
|
59
|
+
|
60
|
+
<span><a target="_self" href="file_list.html">
|
61
|
+
Files
|
62
|
+
</a></span>
|
63
|
+
|
64
|
+
</div>
|
65
|
+
<div id="search">Search: <input type="text" /></div>
|
66
|
+
|
67
|
+
<ul id="full_list" class="class">
|
68
|
+
<li>
|
69
|
+
<span class='object_link'><a href="requirements/step_transformers.html" title="requirements::step_transformers (steptransformers)">All Step Definitions</a></span>
|
70
|
+
</li>
|
71
|
+
|
72
|
+
|
73
|
+
<li class="r1">
|
74
|
+
<span class='object_link'>
|
75
|
+
<span class="pre">Given</span>
|
76
|
+
<a href="requirements/step_transformers.html#step_definition1-stepdefinition" title="/^I have a secure web service$/">
|
77
|
+
<span class="name">/^I have a secure web service$/</span>
|
78
|
+
</a>
|
79
|
+
</span>
|
80
|
+
<small>features/step_definitions/header_steps.rb:1</small>
|
81
|
+
</li>
|
82
|
+
|
83
|
+
|
84
|
+
<li class="r2">
|
85
|
+
<span class='object_link'>
|
86
|
+
<span class="pre">Given</span>
|
87
|
+
<a href="requirements/step_transformers.html#step_definition2-stepdefinition" title="/^I have "(GET|PUT|POST|DELETE)" service for "(.*?)" with the following headers$/">
|
88
|
+
<span class="name">/^I have "(GET|PUT|POST|DELETE)" service for "(.*?)" with the following headers$/</span>
|
89
|
+
</a>
|
90
|
+
</span>
|
91
|
+
<small>features/step_definitions/header_steps.rb:8</small>
|
92
|
+
</li>
|
93
|
+
|
94
|
+
|
95
|
+
<li class="r1">
|
96
|
+
<span class='object_link'>
|
97
|
+
<span class="pre">When</span>
|
98
|
+
<a href="requirements/step_transformers.html#step_definition3-stepdefinition" title="/^I have the following headers?$/">
|
99
|
+
<span class="name">/^I have the following headers?$/</span>
|
100
|
+
</a>
|
101
|
+
</span>
|
102
|
+
<small>features/step_definitions/header_steps.rb:13</small>
|
103
|
+
</li>
|
104
|
+
|
105
|
+
|
106
|
+
<li class="r2">
|
107
|
+
<span class='object_link'>
|
108
|
+
<span class="pre">Given</span>
|
109
|
+
<a href="requirements/step_transformers.html#step_definition4-stepdefinition" title="/^I have basic auth for user "(.*?)" and password "(.*?)"$/">
|
110
|
+
<span class="name">/^I have basic auth for user "(.*?)" and password "(.*?)"$/</span>
|
111
|
+
</a>
|
112
|
+
</span>
|
113
|
+
<small>features/step_definitions/header_steps.rb:17</small>
|
114
|
+
</li>
|
115
|
+
|
116
|
+
|
117
|
+
<li class="r1">
|
118
|
+
<span class='object_link'>
|
119
|
+
<span class="pre">Given</span>
|
120
|
+
<a href="requirements/step_transformers.html#step_definition5-stepdefinition" title="/^I have a web service$/">
|
121
|
+
<span class="name">/^I have a web service$/</span>
|
122
|
+
</a>
|
123
|
+
</span>
|
124
|
+
<small>features/step_definitions/rest_client_steps.rb:3</small>
|
125
|
+
</li>
|
126
|
+
|
127
|
+
|
128
|
+
<li class="r2">
|
129
|
+
<span class='object_link'>
|
130
|
+
<span class="pre">Given</span>
|
131
|
+
<a href="requirements/step_transformers.html#step_definition6-stepdefinition" title="/^I have "(GET|PUT|POST|DELETE)" service for "(.*?)"$/">
|
132
|
+
<span class="name">/^I have "(GET|PUT|POST|DELETE)" service for "(.*?)"$/</span>
|
133
|
+
</a>
|
134
|
+
</span>
|
135
|
+
<small>features/step_definitions/rest_client_steps.rb:10</small>
|
136
|
+
</li>
|
137
|
+
|
138
|
+
|
139
|
+
<li class="r1">
|
140
|
+
<span class='object_link'>
|
141
|
+
<span class="pre">Given</span>
|
142
|
+
<a href="requirements/step_transformers.html#step_definition7-stepdefinition" title="/^I have "(GET|PUT|POST|DELETE)" service for "(.*?)" as follows$/">
|
143
|
+
<span class="name">/^I have "(GET|PUT|POST|DELETE)" service for "(.*?)" as follows$/</span>
|
144
|
+
</a>
|
145
|
+
</span>
|
146
|
+
<small>features/step_definitions/rest_client_steps.rb:15</small>
|
147
|
+
</li>
|
148
|
+
|
149
|
+
|
150
|
+
<li class="r2">
|
151
|
+
<span class='object_link'>
|
152
|
+
<span class="pre">Given</span>
|
153
|
+
<a href="requirements/step_transformers.html#step_definition8-stepdefinition" title="/^I am a rest client$/">
|
154
|
+
<span class="name">/^I am a rest client$/</span>
|
155
|
+
</a>
|
156
|
+
</span>
|
157
|
+
<small>features/step_definitions/rest_client_steps.rb:20</small>
|
158
|
+
</li>
|
159
|
+
|
160
|
+
|
161
|
+
<li class="r1">
|
162
|
+
<span class='object_link'>
|
163
|
+
<span class="pre">When</span>
|
164
|
+
<a href="requirements/step_transformers.html#step_definition9-stepdefinition" title="/^I "(GET|DELETE)" from the web service$/">
|
165
|
+
<span class="name">/^I "(GET|DELETE)" from the web service$/</span>
|
166
|
+
</a>
|
167
|
+
</span>
|
168
|
+
<small>features/step_definitions/rest_client_steps.rb:24</small>
|
169
|
+
</li>
|
170
|
+
|
171
|
+
|
172
|
+
<li class="r2">
|
173
|
+
<span class='object_link'>
|
174
|
+
<span class="pre">When</span>
|
175
|
+
<a href="requirements/step_transformers.html#step_definition10-stepdefinition" title="/^I "(PUT|POST)" to the web service with the following$/">
|
176
|
+
<span class="name">/^I "(PUT|POST)" to the web service with the following$/</span>
|
177
|
+
</a>
|
178
|
+
</span>
|
179
|
+
<small>features/step_definitions/rest_client_steps.rb:33</small>
|
180
|
+
</li>
|
181
|
+
|
182
|
+
|
183
|
+
<li class="r1">
|
184
|
+
<span class='object_link'>
|
185
|
+
<span class="pre">When</span>
|
186
|
+
<a href="requirements/step_transformers.html#step_definition11-stepdefinition" title="/^I pause$/">
|
187
|
+
<span class="name">/^I pause$/</span>
|
188
|
+
</a>
|
189
|
+
</span>
|
190
|
+
<small>features/step_definitions/rest_client_steps.rb:42</small>
|
191
|
+
</li>
|
192
|
+
|
193
|
+
|
194
|
+
<li class="r2">
|
195
|
+
<span class='object_link'>
|
196
|
+
<span class="pre">Then</span>
|
197
|
+
<a href="requirements/step_transformers.html#step_definition12-stepdefinition" title="/^I receive the expected message$/">
|
198
|
+
<span class="name">/^I receive the expected message$/</span>
|
199
|
+
</a>
|
200
|
+
</span>
|
201
|
+
<small>features/step_definitions/rest_client_steps.rb:46</small>
|
202
|
+
</li>
|
203
|
+
|
204
|
+
|
205
|
+
<li class="r1">
|
206
|
+
<span class='object_link'>
|
207
|
+
<span class="pre">Then</span>
|
208
|
+
<a href="requirements/step_transformers.html#step_definition13-stepdefinition" title="/^I receive the following$/">
|
209
|
+
<span class="name">/^I receive the following$/</span>
|
210
|
+
</a>
|
211
|
+
</span>
|
212
|
+
<small>features/step_definitions/rest_client_steps.rb:51</small>
|
213
|
+
</li>
|
214
|
+
|
215
|
+
|
216
|
+
<li class="r2">
|
217
|
+
<span class='object_link'>
|
218
|
+
<span class="pre">Then</span>
|
219
|
+
<a href="requirements/step_transformers.html#step_definition14-stepdefinition" title="/^the response prints like the following$/">
|
220
|
+
<span class="name">/^the response prints like the following$/</span>
|
221
|
+
</a>
|
222
|
+
</span>
|
223
|
+
<small>features/step_definitions/rest_client_steps.rb:56</small>
|
224
|
+
</li>
|
225
|
+
|
226
|
+
|
227
|
+
</ul>
|
228
|
+
</div>
|
229
|
+
</body>
|
230
|
+
</html>
|
data/doc/tag_list.html
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
|
7
|
+
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
16
|
+
|
17
|
+
|
18
|
+
<title>Tags List</title>
|
19
|
+
<base id="base_target" target="_parent" />
|
20
|
+
</head>
|
21
|
+
<body>
|
22
|
+
<script type="text/javascript" charset="utf-8">
|
23
|
+
if (window.top.frames.main) {
|
24
|
+
document.getElementById('base_target').target = 'main';
|
25
|
+
document.body.className = 'frames';
|
26
|
+
}
|
27
|
+
</script>
|
28
|
+
<div id="content">
|
29
|
+
<h1 id="full_list_header">Tags List</h1>
|
30
|
+
<div id="nav">
|
31
|
+
|
32
|
+
<span><a target="_self" href="feature_list.html">
|
33
|
+
Features
|
34
|
+
</a></span>
|
35
|
+
|
36
|
+
<span><a target="_self" href="featuredirectories_list.html">
|
37
|
+
Features by Directory
|
38
|
+
</a></span>
|
39
|
+
|
40
|
+
<span><a target="_self" href="tag_list.html">
|
41
|
+
Tags
|
42
|
+
</a></span>
|
43
|
+
|
44
|
+
<span><a target="_self" href="step_list.html">
|
45
|
+
Steps
|
46
|
+
</a></span>
|
47
|
+
|
48
|
+
<span><a target="_self" href="stepdefinition_list.html">
|
49
|
+
Step Definitions
|
50
|
+
</a></span>
|
51
|
+
|
52
|
+
<span><a target="_self" href="class_list.html">
|
53
|
+
Classes
|
54
|
+
</a></span>
|
55
|
+
|
56
|
+
<span><a target="_self" href="method_list.html">
|
57
|
+
Methods
|
58
|
+
</a></span>
|
59
|
+
|
60
|
+
<span><a target="_self" href="file_list.html">
|
61
|
+
Files
|
62
|
+
</a></span>
|
63
|
+
|
64
|
+
</div>
|
65
|
+
<div id="search">Search: <input type="text" /></div>
|
66
|
+
|
67
|
+
<ul id="full_list" class="class">
|
68
|
+
<li>
|
69
|
+
<span class='object_link'><a href="requirements/tags.html" title="requirements::tags (featuretags)">All Tags</a></span>
|
70
|
+
</li>
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
<li class="r1">
|
75
|
+
<span class='object_link'><a href="requirements/tags/extended.html" title="requirements::tags::extended (tag)">@extended</a></span>
|
76
|
+
<small>8</small>
|
77
|
+
</li>
|
78
|
+
|
79
|
+
|
80
|
+
<li class="r2">
|
81
|
+
<span class='object_link'><a href="requirements/tags/post.html" title="requirements::tags::post (tag)">@post</a></span>
|
82
|
+
<small>5</small>
|
83
|
+
</li>
|
84
|
+
|
85
|
+
|
86
|
+
<li class="r1">
|
87
|
+
<span class='object_link'><a href="requirements/tags/print.html" title="requirements::tags::print (tag)">@print</a></span>
|
88
|
+
<small>4</small>
|
89
|
+
</li>
|
90
|
+
|
91
|
+
|
92
|
+
<li class="r2">
|
93
|
+
<span class='object_link'><a href="requirements/tags/core.html" title="requirements::tags::core (tag)">@core</a></span>
|
94
|
+
<small>4</small>
|
95
|
+
</li>
|
96
|
+
|
97
|
+
|
98
|
+
<li class="r1">
|
99
|
+
<span class='object_link'><a href="requirements/tags/get.html" title="requirements::tags::get (tag)">@get</a></span>
|
100
|
+
<small>3</small>
|
101
|
+
</li>
|
102
|
+
|
103
|
+
|
104
|
+
<li class="r2">
|
105
|
+
<span class='object_link'><a href="requirements/tags/put.html" title="requirements::tags::put (tag)">@put</a></span>
|
106
|
+
<small>2</small>
|
107
|
+
</li>
|
108
|
+
|
109
|
+
|
110
|
+
<li class="r1">
|
111
|
+
<span class='object_link'><a href="requirements/tags/headers.html" title="requirements::tags::headers (tag)">@headers</a></span>
|
112
|
+
<small>2</small>
|
113
|
+
</li>
|
114
|
+
|
115
|
+
|
116
|
+
<li class="r2">
|
117
|
+
<span class='object_link'><a href="requirements/tags/delete.html" title="requirements::tags::delete (tag)">@delete</a></span>
|
118
|
+
<small>2</small>
|
119
|
+
</li>
|
120
|
+
|
121
|
+
|
122
|
+
<li class="r1">
|
123
|
+
<span class='object_link'><a href="requirements/tags/authentication.html" title="requirements::tags::authentication (tag)">@authentication</a></span>
|
124
|
+
<small>2</small>
|
125
|
+
</li>
|
126
|
+
|
127
|
+
|
128
|
+
</ul>
|
129
|
+
</div>
|
130
|
+
</body>
|
131
|
+
</html>
|
@@ -0,0 +1,244 @@
|
|
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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Top Level Namespace
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<link rel="stylesheet" href="css/cucumber.css" type="text/css" charset="utf-8" />
|
18
|
+
|
19
|
+
<script type="text/javascript" charset="utf-8">
|
20
|
+
hasFrames = window.top.frames.main ? true : false;
|
21
|
+
relpath = '';
|
22
|
+
framesUrl = "frames.html#!" + escape(window.location.href);
|
23
|
+
</script>
|
24
|
+
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
27
|
+
|
28
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
29
|
+
|
30
|
+
<script type="text/javascript" charset="utf-8" src="js/cucumber.js"></script>
|
31
|
+
|
32
|
+
|
33
|
+
</head>
|
34
|
+
<body>
|
35
|
+
<div id="header">
|
36
|
+
<div id="menu">
|
37
|
+
|
38
|
+
<a href="_index.html">Index</a> »
|
39
|
+
|
40
|
+
|
41
|
+
<span class="title">Top Level Namespace</span>
|
42
|
+
|
43
|
+
|
44
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div id="search">
|
48
|
+
|
49
|
+
<a class="full_list_link" id="feature_list_link"
|
50
|
+
href="feature_list.html">
|
51
|
+
Features
|
52
|
+
</a>
|
53
|
+
|
54
|
+
<a class="full_list_link" id="featuredirectories_list_link"
|
55
|
+
href="featuredirectories_list.html">
|
56
|
+
Features by Directory
|
57
|
+
</a>
|
58
|
+
|
59
|
+
<a class="full_list_link" id="tag_list_link"
|
60
|
+
href="tag_list.html">
|
61
|
+
Tags
|
62
|
+
</a>
|
63
|
+
|
64
|
+
<a class="full_list_link" id="step_list_link"
|
65
|
+
href="step_list.html">
|
66
|
+
Steps
|
67
|
+
</a>
|
68
|
+
|
69
|
+
<a class="full_list_link" id="stepdefinition_list_link"
|
70
|
+
href="stepdefinition_list.html">
|
71
|
+
Step Defs
|
72
|
+
</a>
|
73
|
+
|
74
|
+
<a class="full_list_link" id="class_list_link"
|
75
|
+
href="class_list.html">
|
76
|
+
Class List
|
77
|
+
</a>
|
78
|
+
|
79
|
+
<a class="full_list_link" id="method_list_link"
|
80
|
+
href="method_list.html">
|
81
|
+
Method List
|
82
|
+
</a>
|
83
|
+
|
84
|
+
<a class="full_list_link" id="file_list_link"
|
85
|
+
href="file_list.html">
|
86
|
+
File List
|
87
|
+
</a>
|
88
|
+
|
89
|
+
</div>
|
90
|
+
<div class="clear"></div>
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<iframe id="search_frame"></iframe>
|
94
|
+
|
95
|
+
<div id="content"><h1>Top Level Namespace
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
</h1>
|
100
|
+
|
101
|
+
<dl class="box">
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<dt class="r1">Includes:</dt>
|
108
|
+
<dd class="r1">PinchHitter, <span class='object_link'><a href="RestBaby.html" title="RestBaby (module)">RestBaby</a></span>, WebMock</dd>
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
</dl>
|
115
|
+
<div class="clear"></div>
|
116
|
+
|
117
|
+
<h2>Defined Under Namespace</h2>
|
118
|
+
<p class="children">
|
119
|
+
|
120
|
+
|
121
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="RestBaby.html" title="RestBaby (module)">RestBaby</a></span>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="MockRestService.html" title="MockRestService (class)">MockRestService</a></span>, <span class='object_link'><a href="PinchRestService.html" title="PinchRestService (class)">PinchRestService</a></span>
|
126
|
+
|
127
|
+
|
128
|
+
</p>
|
129
|
+
|
130
|
+
<h2>Constant Summary</h2>
|
131
|
+
|
132
|
+
<dl class="constants">
|
133
|
+
|
134
|
+
<dt id="DEFAULT_MESSAGE-constant" class="">DEFAULT_MESSAGE =
|
135
|
+
|
136
|
+
</dt>
|
137
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>{'Answer': 'What did you expect?'}</span><span class='tstring_end'>"</span></span></pre></dd>
|
138
|
+
|
139
|
+
</dl>
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
<h3 class="inherited">Constants included
|
147
|
+
from <span class='object_link'><a href="RestBaby.html" title="RestBaby (module)">RestBaby</a></span></h3>
|
148
|
+
<p class="inherited"><span class='object_link'><a href="RestBaby.html#VERSION-constant" title="RestBaby::VERSION (constant)">RestBaby::VERSION</a></span></p>
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
<h2>
|
156
|
+
Instance Method Summary
|
157
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
158
|
+
</h2>
|
159
|
+
|
160
|
+
<ul class="summary">
|
161
|
+
|
162
|
+
<li class="public ">
|
163
|
+
<span class="summary_signature">
|
164
|
+
|
165
|
+
<a href="#pause-instance_method" title="#pause (instance method)">- (Object) <strong>pause</strong> </a>
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
</span>
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
180
|
+
|
181
|
+
</li>
|
182
|
+
|
183
|
+
|
184
|
+
</ul>
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
<div id="instance_method_details" class="method_details_list">
|
198
|
+
<h2>Instance Method Details</h2>
|
199
|
+
|
200
|
+
|
201
|
+
<div class="method_details first">
|
202
|
+
<h3 class="signature first" id="pause-instance_method">
|
203
|
+
|
204
|
+
- (<tt>Object</tt>) <strong>pause</strong>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
</h3><table class="source_code">
|
211
|
+
<tr>
|
212
|
+
<td>
|
213
|
+
<pre class="lines">
|
214
|
+
|
215
|
+
|
216
|
+
1
|
217
|
+
2
|
218
|
+
3
|
219
|
+
4</pre>
|
220
|
+
</td>
|
221
|
+
<td>
|
222
|
+
<pre class="code"><span class="info file"># File 'features/support/utility.rb', line 1</span>
|
223
|
+
|
224
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_pause'>pause</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
225
|
+
<span class='id identifier rubyid_print'>print</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Press Return to continue...</span><span class='tstring_end'>"</span></span>
|
226
|
+
<span class='const'>STDIN</span><span class='period'>.</span><span class='id identifier rubyid_getc'>getc</span>
|
227
|
+
<span class='kw'>end</span></pre>
|
228
|
+
</td>
|
229
|
+
</tr>
|
230
|
+
</table>
|
231
|
+
</div>
|
232
|
+
|
233
|
+
</div>
|
234
|
+
|
235
|
+
</div>
|
236
|
+
|
237
|
+
<div id="footer">
|
238
|
+
Generated on Tue Aug 6 23:42:42 2013 by
|
239
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
240
|
+
0.8.7 (ruby-2.0.0).
|
241
|
+
</div>
|
242
|
+
|
243
|
+
</body>
|
244
|
+
</html>
|
File without changes
|
@@ -24,18 +24,19 @@ end
|
|
24
24
|
When(/^I "(GET|DELETE)" from the web service$/) do |type|
|
25
25
|
case type.downcase
|
26
26
|
when 'get'
|
27
|
-
@response = @restbaby.get
|
27
|
+
@response = @restbaby.get
|
28
28
|
when 'delete'
|
29
|
-
@response = @restbaby.delete(@path)
|
29
|
+
# @response = @restbaby.delete(@path)
|
30
|
+
@response = @restbaby.delete
|
30
31
|
end
|
31
32
|
end
|
32
33
|
|
33
34
|
When(/^I "(PUT|POST)" to the web service with the following$/) do |type, message|
|
34
35
|
case type.downcase
|
35
36
|
when 'put'
|
36
|
-
@response = @restbaby.put(
|
37
|
+
@response = @restbaby.put(message)
|
37
38
|
when 'post'
|
38
|
-
@response = @restbaby.post(
|
39
|
+
@response = @restbaby.post(message)
|
39
40
|
end
|
40
41
|
end
|
41
42
|
|
data/features/support/env.rb
CHANGED
@@ -5,25 +5,8 @@ require 'cucumber/rspec/doubles'
|
|
5
5
|
require 'rubygems'
|
6
6
|
require 'webmock/cucumber'
|
7
7
|
require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "lib", "rest_baby.rb"))
|
8
|
-
require 'logger'
|
9
8
|
|
10
9
|
include RestBaby
|
11
10
|
|
12
|
-
|
13
|
-
mylog.level = case FigNewton.log_level.upcase
|
14
|
-
when 'FATAL'
|
15
|
-
Logger::WARN
|
16
|
-
when 'ERROR'
|
17
|
-
Logger::WARN
|
18
|
-
when 'WARN'
|
19
|
-
Logger::WARN
|
20
|
-
when 'INFO'
|
21
|
-
Logger::WARN
|
22
|
-
when 'DEBUG'
|
23
|
-
Logger::DEBUG
|
24
|
-
else
|
25
|
-
Logger::UNKNOWN
|
26
|
-
end
|
27
|
-
|
28
|
-
mylog.info "Using environment in #{ENV['FIG_NEWTON_FILE']}"
|
11
|
+
puts "Using environment in #{ENV['FIG_NEWTON_FILE']}"
|
29
12
|
FigNewton.load(ENV['FIG_NEWTON_FILE'])
|
data/lib/rest_baby/version.rb
CHANGED