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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog +13 -0
  3. data/README.md +2 -2
  4. data/Rakefile +8 -1
  5. data/doc/MockRestService.html +351 -0
  6. data/doc/PinchRestService.html +349 -0
  7. data/doc/RestBaby/Client.html +936 -0
  8. data/doc/RestBaby.html +170 -0
  9. data/doc/_index.html +182 -0
  10. data/doc/class_list.html +74 -0
  11. data/doc/css/common.css +1 -0
  12. data/doc/css/cucumber.css +227 -0
  13. data/doc/css/full_list.css +57 -0
  14. data/doc/css/style.css +338 -0
  15. data/doc/feature_list.html +245 -0
  16. data/doc/featuredirectories_list.html +179 -0
  17. data/doc/file.README.html +134 -0
  18. data/doc/file_list.html +76 -0
  19. data/doc/frames.html +28 -0
  20. data/doc/index.html +134 -0
  21. data/doc/js/app.js +214 -0
  22. data/doc/js/cucumber.js +305 -0
  23. data/doc/js/full_list.js +178 -0
  24. data/doc/js/jquery.js +4 -0
  25. data/doc/method_list.html +169 -0
  26. data/doc/requirements/features/header_options.html +1020 -0
  27. data/doc/requirements/features/headers/header_options.html +1020 -0
  28. data/doc/requirements/features/headers.html +157 -0
  29. data/doc/requirements/features/print_response.html +969 -0
  30. data/doc/requirements/features/rest_client.html +835 -0
  31. data/doc/requirements/features.html +199 -0
  32. data/doc/requirements/step_transformers.html +1508 -0
  33. data/doc/requirements/tags/authentication.html +169 -0
  34. data/doc/requirements/tags/core.html +187 -0
  35. data/doc/requirements/tags/delete.html +169 -0
  36. data/doc/requirements/tags/extended.html +223 -0
  37. data/doc/requirements/tags/get.html +178 -0
  38. data/doc/requirements/tags/headers.html +169 -0
  39. data/doc/requirements/tags/post.html +196 -0
  40. data/doc/requirements/tags/print.html +187 -0
  41. data/doc/requirements/tags/put.html +169 -0
  42. data/doc/requirements/tags.html +408 -0
  43. data/doc/requirements.html +213 -0
  44. data/doc/step_list.html +825 -0
  45. data/doc/stepdefinition_list.html +230 -0
  46. data/doc/tag_list.html +131 -0
  47. data/doc/top-level-namespace.html +244 -0
  48. data/features/{header_options.feature → headers/header_options.feature} +0 -0
  49. data/features/step_definitions/rest_client_steps.rb +5 -4
  50. data/features/support/env.rb +1 -18
  51. data/features/support/mock_rest_service.rb +1 -1
  52. data/lib/rest_baby/version.rb +1 -1
  53. data/lib/rest_baby.rb +62 -35
  54. metadata +49 -5
  55. data/LICENSE +0 -24
@@ -0,0 +1,1508 @@
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
+ Step Definitions and Transforms
8
+
9
+ &mdash; 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 (s)</a> &raquo;
39
+ <span class='title'><span class='object_link'><a href="../requirements.html" title="requirements (requirements)">requirements</a></span></span>
40
+ &raquo;
41
+ <span class="title">step_transformers</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"><div class="requirements">
96
+ <div class="title">Step Definitions &amp; Transforms</div>
97
+
98
+ <div class="summary">
99
+ <div>14<a href="#step_definitions">Step Definitions</a></div>
100
+ <div>0<a href="#step_transforms">Step Transforms</a></div>
101
+ <div>0<a href="#undefined_steps">Undefined Steps</a></div>
102
+ </div>
103
+
104
+ </div><div class="title">
105
+
106
+ <a class="control" id="stepdefinition">[Collapse All]</a>
107
+ <div style="clear: right;"></div>
108
+
109
+
110
+
111
+ <a name="step_definitions">
112
+
113
+ <div class="name">Step Definitions</div>
114
+ </div>
115
+
116
+
117
+
118
+ <div class="transformer stepdefinition
119
+
120
+ ">
121
+ <a name="step_definition8-stepdefinition"></a>
122
+ <div class="title">
123
+ <span class="pre">Given</span>
124
+ <span class="name">/^I am a rest client$/</span>
125
+ <div style="float: right;">
126
+ <a href="http://rubular.com/?regex=%2F%5EI+am+a+rest+client%24%2F" target="_blank">Rubular</a>
127
+
128
+
129
+ </div>
130
+ <div style="clear: both;"></div>
131
+ </div>
132
+
133
+ <div class="details">
134
+
135
+ <div class="meta" style="clear: right;">
136
+ <div class="file">features/step_definitions/rest_client_steps.rb:20</div>
137
+ </div>
138
+
139
+ <!-- Comments -->
140
+ <div>
141
+
142
+ </div>
143
+
144
+
145
+ <!-- Source Code -->
146
+ <div class="method_details_list">
147
+ <table class="source_code">
148
+ <tr>
149
+ <td>
150
+ <pre class="lines">20
151
+ 21
152
+ 22</pre>
153
+ </td>
154
+ <td>
155
+ <pre class="code"><span class='const'>Given</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^I am a rest client$</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span> <span class='kw'>do</span>
156
+ <span class='ivar'>@restbaby</span> <span class='op'>=</span> <span class='const'>Client</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@protocol</span><span class='embexpr_end'>}</span><span class='tstring_content'>://</span><span class='embexpr_beg'>#{</span><span class='ivar'>@server</span><span class='embexpr_end'>}</span><span class='tstring_content'>:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@port</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='ivar'>@path</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
157
+ <span class='kw'>end</span></pre>
158
+ </td>
159
+ </tr>
160
+ </table>
161
+ </div>
162
+
163
+ <!-- Matching Step Instances -->
164
+
165
+ <div class='showSteps'>
166
+ [<a href='#' class='toggleSteps' alt="12 steps">Hide 12 steps</a>]
167
+ </div>
168
+
169
+ <div class="steps">
170
+
171
+
172
+ <div class="step odd">
173
+ <div>
174
+ <span class="predicate">
175
+ And
176
+ </span>
177
+ <span class="defined">
178
+ I am a rest client
179
+ </span>
180
+ </div>
181
+
182
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:8</a>
183
+
184
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:20</a>
185
+
186
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:34</a>
187
+
188
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:43</a>
189
+
190
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:10</a>
191
+
192
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:29</a>
193
+
194
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:49</a>
195
+
196
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:69</a>
197
+
198
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:7</a>
199
+
200
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:15</a>
201
+
202
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:26</a>
203
+
204
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:37</a>
205
+
206
+ <div style="clear: both;"></div>
207
+ </div>
208
+
209
+
210
+ </div>
211
+
212
+ </div>
213
+
214
+ <div style="margin: 30px 20px; border-top: 1px dotted #AAA;"></div>
215
+
216
+ </div>
217
+
218
+
219
+
220
+ <div class="transformer stepdefinition
221
+
222
+ ">
223
+ <a name="step_definition12-stepdefinition"></a>
224
+ <div class="title">
225
+ <span class="pre">Then</span>
226
+ <span class="name">/^I receive the expected message$/</span>
227
+ <div style="float: right;">
228
+ <a href="http://rubular.com/?regex=%2F%5EI+receive+the+expected+message%24%2F" target="_blank">Rubular</a>
229
+
230
+
231
+ </div>
232
+ <div style="clear: both;"></div>
233
+ </div>
234
+
235
+ <div class="details">
236
+
237
+ <div class="meta" style="clear: right;">
238
+ <div class="file">features/step_definitions/rest_client_steps.rb:46</div>
239
+ </div>
240
+
241
+ <!-- Comments -->
242
+ <div>
243
+
244
+ </div>
245
+
246
+
247
+ <!-- Source Code -->
248
+ <div class="method_details_list">
249
+ <table class="source_code">
250
+ <tr>
251
+ <td>
252
+ <pre class="lines">46
253
+ 47
254
+ 48
255
+ 49</pre>
256
+ </td>
257
+ <td>
258
+ <pre class="code"><span class='const'>Then</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^I receive the expected message$</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span> <span class='kw'>do</span>
259
+ <span class='id identifier rubyid_expect'>expect</span><span class='lparen'>(</span><span class='ivar'>@response</span><span class='period'>.</span><span class='id identifier rubyid_code'>code</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to'>to</span> <span class='id identifier rubyid_eq'>eq</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>200</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
260
+ <span class='id identifier rubyid_expect'>expect</span><span class='lparen'>(</span><span class='ivar'>@response</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to'>to</span> <span class='id identifier rubyid_eq'>eq</span><span class='lparen'>(</span><span class='const'>DEFAULT_MESSAGE</span><span class='rparen'>)</span>
261
+ <span class='kw'>end</span></pre>
262
+ </td>
263
+ </tr>
264
+ </table>
265
+ </div>
266
+
267
+ <!-- Matching Step Instances -->
268
+
269
+ <div class='showSteps'>
270
+ [<a href='#' class='toggleSteps' alt="12 steps">Hide 12 steps</a>]
271
+ </div>
272
+
273
+ <div class="steps">
274
+
275
+
276
+ <div class="step odd">
277
+ <div>
278
+ <span class="predicate">
279
+ Then
280
+ </span>
281
+ <span class="defined">
282
+ I receive the expected message
283
+ </span>
284
+ </div>
285
+
286
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:12</a>
287
+
288
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:28</a>
289
+
290
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:37</a>
291
+
292
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:46</a>
293
+
294
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:13</a>
295
+
296
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:34</a>
297
+
298
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:54</a>
299
+
300
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:71</a>
301
+
302
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:9</a>
303
+
304
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:20</a>
305
+
306
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:31</a>
307
+
308
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:39</a>
309
+
310
+ <div style="clear: both;"></div>
311
+ </div>
312
+
313
+
314
+ </div>
315
+
316
+ </div>
317
+
318
+ <div style="margin: 30px 20px; border-top: 1px dotted #AAA;"></div>
319
+
320
+ </div>
321
+
322
+
323
+
324
+ <div class="transformer stepdefinition
325
+
326
+ ">
327
+ <a name="step_definition5-stepdefinition"></a>
328
+ <div class="title">
329
+ <span class="pre">Given</span>
330
+ <span class="name">/^I have a web service$/</span>
331
+ <div style="float: right;">
332
+ <a href="http://rubular.com/?regex=%2F%5EI+have+a+web+service%24%2F" target="_blank">Rubular</a>
333
+
334
+
335
+ </div>
336
+ <div style="clear: both;"></div>
337
+ </div>
338
+
339
+ <div class="details">
340
+
341
+ <div class="meta" style="clear: right;">
342
+ <div class="file">features/step_definitions/rest_client_steps.rb:3</div>
343
+ </div>
344
+
345
+ <!-- Comments -->
346
+ <div>
347
+
348
+ </div>
349
+
350
+
351
+ <!-- Source Code -->
352
+ <div class="method_details_list">
353
+ <table class="source_code">
354
+ <tr>
355
+ <td>
356
+ <pre class="lines">3
357
+ 4
358
+ 5
359
+ 6
360
+ 7
361
+ 8</pre>
362
+ </td>
363
+ <td>
364
+ <pre class="code"><span class='const'>Given</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^I have a web service$</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span> <span class='kw'>do</span>
365
+ <span class='ivar'>@protocol</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>http</span><span class='tstring_end'>&#39;</span></span>
366
+ <span class='ivar'>@server</span> <span class='op'>=</span> <span class='const'>FigNewton</span><span class='period'>.</span><span class='id identifier rubyid_server'>server</span>
367
+ <span class='ivar'>@port</span> <span class='op'>=</span> <span class='const'>FigNewton</span><span class='period'>.</span><span class='id identifier rubyid_port'>port</span>
368
+ <span class='ivar'>@mockservice</span> <span class='op'>=</span> <span class='const'>MockRestService</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='ivar'>@server</span><span class='comma'>,</span> <span class='ivar'>@port</span><span class='comma'>,</span> <span class='ivar'>@protocol</span><span class='rparen'>)</span>
369
+ <span class='kw'>end</span></pre>
370
+ </td>
371
+ </tr>
372
+ </table>
373
+ </div>
374
+
375
+ <!-- Matching Step Instances -->
376
+
377
+ <div class='showSteps'>
378
+ [<a href='#' class='toggleSteps' alt="11 steps">Hide 11 steps</a>]
379
+ </div>
380
+
381
+ <div class="steps">
382
+
383
+
384
+ <div class="step odd">
385
+ <div>
386
+ <span class="predicate">
387
+ Given
388
+ </span>
389
+ <span class="defined">
390
+ I have a web service
391
+ </span>
392
+ </div>
393
+
394
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:5</a>
395
+
396
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:16</a>
397
+
398
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:32</a>
399
+
400
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:5</a>
401
+
402
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:24</a>
403
+
404
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:44</a>
405
+
406
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:64</a>
407
+
408
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:5</a>
409
+
410
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:13</a>
411
+
412
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:24</a>
413
+
414
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:35</a>
415
+
416
+ <div style="clear: both;"></div>
417
+ </div>
418
+
419
+
420
+ </div>
421
+
422
+ </div>
423
+
424
+ <div style="margin: 30px 20px; border-top: 1px dotted #AAA;"></div>
425
+
426
+ </div>
427
+
428
+
429
+
430
+ <div class="transformer stepdefinition
431
+
432
+ ">
433
+ <a name="step_definition9-stepdefinition"></a>
434
+ <div class="title">
435
+ <span class="pre">When</span>
436
+ <span class="name">/^I "(GET|DELETE)" from the web service$/</span>
437
+ <div style="float: right;">
438
+ <a href="http://rubular.com/?regex=%2F%5EI+%22%28GET%7CDELETE%29%22+from+the+web+service%24%2F" target="_blank">Rubular</a>
439
+
440
+
441
+ </div>
442
+ <div style="clear: both;"></div>
443
+ </div>
444
+
445
+ <div class="details">
446
+
447
+ <div class="meta" style="clear: right;">
448
+ <div class="file">features/step_definitions/rest_client_steps.rb:24</div>
449
+ </div>
450
+
451
+ <!-- Comments -->
452
+ <div>
453
+
454
+ </div>
455
+
456
+
457
+ <!-- Source Code -->
458
+ <div class="method_details_list">
459
+ <table class="source_code">
460
+ <tr>
461
+ <td>
462
+ <pre class="lines">24
463
+ 25
464
+ 26
465
+ 27
466
+ 28
467
+ 29
468
+ 30
469
+ 31</pre>
470
+ </td>
471
+ <td>
472
+ <pre class="code"><span class='const'>When</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^I &quot;(GET|DELETE)&quot; from the web service$</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_type'>type</span><span class='op'>|</span>
473
+ <span class='kw'>case</span> <span class='id identifier rubyid_type'>type</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span>
474
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>get</span><span class='tstring_end'>&#39;</span></span>
475
+ <span class='ivar'>@response</span> <span class='op'>=</span> <span class='ivar'>@restbaby</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='ivar'>@path</span><span class='rparen'>)</span>
476
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>delete</span><span class='tstring_end'>&#39;</span></span>
477
+ <span class='ivar'>@response</span> <span class='op'>=</span> <span class='ivar'>@restbaby</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='ivar'>@path</span><span class='rparen'>)</span>
478
+ <span class='kw'>end</span>
479
+ <span class='kw'>end</span></pre>
480
+ </td>
481
+ </tr>
482
+ </table>
483
+ </div>
484
+
485
+ <!-- Matching Step Instances -->
486
+
487
+ <div class='showSteps'>
488
+ [<a href='#' class='toggleSteps' alt="7 steps">Hide 7 steps</a>]
489
+ </div>
490
+
491
+ <div class="steps">
492
+
493
+
494
+ <div class="step odd">
495
+ <div>
496
+ <span class="predicate">
497
+ And
498
+ </span>
499
+ <span class="defined">
500
+ I "<span class='match'>GET</span>" from the web service
501
+ </span>
502
+ </div>
503
+
504
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:11</a>
505
+
506
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:36</a>
507
+
508
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:45</a>
509
+
510
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:12</a>
511
+
512
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:8</a>
513
+
514
+ <div style="clear: both;"></div>
515
+ </div>
516
+
517
+ <div class="step even">
518
+ <div>
519
+ <span class="predicate">
520
+ When
521
+ </span>
522
+ <span class="defined">
523
+ I "<span class='match'>DELETE</span>" from the web service
524
+ </span>
525
+ </div>
526
+
527
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:70</a>
528
+
529
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:38</a>
530
+
531
+ <div style="clear: both;"></div>
532
+ </div>
533
+
534
+
535
+ </div>
536
+
537
+ </div>
538
+
539
+ <div style="margin: 30px 20px; border-top: 1px dotted #AAA;"></div>
540
+
541
+ </div>
542
+
543
+
544
+
545
+ <div class="transformer stepdefinition
546
+
547
+ ">
548
+ <a name="step_definition6-stepdefinition"></a>
549
+ <div class="title">
550
+ <span class="pre">Given</span>
551
+ <span class="name">/^I have "(GET|PUT|POST|DELETE)" service for "(.*?)"$/</span>
552
+ <div style="float: right;">
553
+ <a href="http://rubular.com/?regex=%2F%5EI+have+%22%28GET%7CPUT%7CPOST%7CDELETE%29%22+service+for+%22%28.%2A%3F%29%22%24%2F" target="_blank">Rubular</a>
554
+
555
+
556
+ </div>
557
+ <div style="clear: both;"></div>
558
+ </div>
559
+
560
+ <div class="details">
561
+
562
+ <div class="meta" style="clear: right;">
563
+ <div class="file">features/step_definitions/rest_client_steps.rb:10</div>
564
+ </div>
565
+
566
+ <!-- Comments -->
567
+ <div>
568
+
569
+ </div>
570
+
571
+
572
+ <!-- Source Code -->
573
+ <div class="method_details_list">
574
+ <table class="source_code">
575
+ <tr>
576
+ <td>
577
+ <pre class="lines">10
578
+ 11
579
+ 12
580
+ 13</pre>
581
+ </td>
582
+ <td>
583
+ <pre class="code"><span class='const'>Given</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^I have &quot;(GET|PUT|POST|DELETE)&quot; service for &quot;(.*?)&quot;$</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='op'>|</span>
584
+ <span class='ivar'>@path</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span>
585
+ <span class='ivar'>@mockservice</span><span class='period'>.</span><span class='id identifier rubyid_store_msg'>store_msg</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='const'>DEFAULT_MESSAGE</span><span class='rparen'>)</span>
586
+ <span class='kw'>end</span></pre>
587
+ </td>
588
+ </tr>
589
+ </table>
590
+ </div>
591
+
592
+ <!-- Matching Step Instances -->
593
+
594
+ <div class='showSteps'>
595
+ [<a href='#' class='toggleSteps' alt="6 steps">Hide 6 steps</a>]
596
+ </div>
597
+
598
+ <div class="steps">
599
+
600
+
601
+ <div class="step odd">
602
+ <div>
603
+ <span class="predicate">
604
+ And
605
+ </span>
606
+ <span class="defined">
607
+ I have "<span class='match'>GET</span>" service for "<span class='match'>/test</span>"
608
+ </span>
609
+ </div>
610
+
611
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:33</a>
612
+
613
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:42</a>
614
+
615
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:6</a>
616
+
617
+ <div style="clear: both;"></div>
618
+ </div>
619
+
620
+ <div class="step even">
621
+ <div>
622
+ <span class="predicate">
623
+ And
624
+ </span>
625
+ <span class="defined">
626
+ I have "<span class='match'>PUT</span>" service for "<span class='match'>/test</span>"
627
+ </span>
628
+ </div>
629
+
630
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:14</a>
631
+
632
+ <div style="clear: both;"></div>
633
+ </div>
634
+
635
+ <div class="step odd">
636
+ <div>
637
+ <span class="predicate">
638
+ And
639
+ </span>
640
+ <span class="defined">
641
+ I have "<span class='match'>POST</span>" service for "<span class='match'>/test</span>"
642
+ </span>
643
+ </div>
644
+
645
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:25</a>
646
+
647
+ <div style="clear: both;"></div>
648
+ </div>
649
+
650
+ <div class="step even">
651
+ <div>
652
+ <span class="predicate">
653
+ And
654
+ </span>
655
+ <span class="defined">
656
+ I have "<span class='match'>DELETE</span>" service for "<span class='match'>/test</span>"
657
+ </span>
658
+ </div>
659
+
660
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:36</a>
661
+
662
+ <div style="clear: both;"></div>
663
+ </div>
664
+
665
+
666
+ </div>
667
+
668
+ </div>
669
+
670
+ <div style="margin: 30px 20px; border-top: 1px dotted #AAA;"></div>
671
+
672
+ </div>
673
+
674
+
675
+
676
+ <div class="transformer stepdefinition
677
+
678
+ ">
679
+ <a name="step_definition10-stepdefinition"></a>
680
+ <div class="title">
681
+ <span class="pre">When</span>
682
+ <span class="name">/^I "(PUT|POST)" to the web service with the following$/</span>
683
+ <div style="float: right;">
684
+ <a href="http://rubular.com/?regex=%2F%5EI+%22%28PUT%7CPOST%29%22+to+the+web+service+with+the+following%24%2F" target="_blank">Rubular</a>
685
+
686
+
687
+ </div>
688
+ <div style="clear: both;"></div>
689
+ </div>
690
+
691
+ <div class="details">
692
+
693
+ <div class="meta" style="clear: right;">
694
+ <div class="file">features/step_definitions/rest_client_steps.rb:33</div>
695
+ </div>
696
+
697
+ <!-- Comments -->
698
+ <div>
699
+
700
+ </div>
701
+
702
+
703
+ <!-- Source Code -->
704
+ <div class="method_details_list">
705
+ <table class="source_code">
706
+ <tr>
707
+ <td>
708
+ <pre class="lines">33
709
+ 34
710
+ 35
711
+ 36
712
+ 37
713
+ 38
714
+ 39
715
+ 40</pre>
716
+ </td>
717
+ <td>
718
+ <pre class="code"><span class='const'>When</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^I &quot;(PUT|POST)&quot; to the web service with the following$</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='op'>|</span>
719
+ <span class='kw'>case</span> <span class='id identifier rubyid_type'>type</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span>
720
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>put</span><span class='tstring_end'>&#39;</span></span>
721
+ <span class='ivar'>@response</span> <span class='op'>=</span> <span class='ivar'>@restbaby</span><span class='period'>.</span><span class='id identifier rubyid_put'>put</span><span class='lparen'>(</span><span class='ivar'>@path</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
722
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>post</span><span class='tstring_end'>&#39;</span></span>
723
+ <span class='ivar'>@response</span> <span class='op'>=</span> <span class='ivar'>@restbaby</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='ivar'>@path</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
724
+ <span class='kw'>end</span>
725
+ <span class='kw'>end</span></pre>
726
+ </td>
727
+ </tr>
728
+ </table>
729
+ </div>
730
+
731
+ <!-- Matching Step Instances -->
732
+
733
+ <div class='showSteps'>
734
+ [<a href='#' class='toggleSteps' alt="5 steps">Hide 5 steps</a>]
735
+ </div>
736
+
737
+ <div class="steps">
738
+
739
+
740
+ <div class="step odd">
741
+ <div>
742
+ <span class="predicate">
743
+ And
744
+ </span>
745
+ <span class="defined">
746
+ I "<span class='match'>POST</span>" to the web service with the following
747
+ </span>
748
+ </div>
749
+
750
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:24</a>
751
+
752
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:50</a>
753
+
754
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:27</a>
755
+
756
+ <div style="clear: both;"></div>
757
+ </div>
758
+
759
+ <div class="step even">
760
+ <div>
761
+ <span class="predicate">
762
+ When
763
+ </span>
764
+ <span class="defined">
765
+ I "<span class='match'>PUT</span>" to the web service with the following
766
+ </span>
767
+ </div>
768
+
769
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:30</a>
770
+
771
+ <a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:16</a>
772
+
773
+ <div style="clear: both;"></div>
774
+ </div>
775
+
776
+
777
+ </div>
778
+
779
+ </div>
780
+
781
+ <div style="margin: 30px 20px; border-top: 1px dotted #AAA;"></div>
782
+
783
+ </div>
784
+
785
+
786
+
787
+ <div class="transformer stepdefinition
788
+
789
+ ">
790
+ <a name="step_definition7-stepdefinition"></a>
791
+ <div class="title">
792
+ <span class="pre">Given</span>
793
+ <span class="name">/^I have "(GET|PUT|POST|DELETE)" service for "(.*?)" as follows$/</span>
794
+ <div style="float: right;">
795
+ <a href="http://rubular.com/?regex=%2F%5EI+have+%22%28GET%7CPUT%7CPOST%7CDELETE%29%22+service+for+%22%28.%2A%3F%29%22+as+follows%24%2F" target="_blank">Rubular</a>
796
+
797
+
798
+ </div>
799
+ <div style="clear: both;"></div>
800
+ </div>
801
+
802
+ <div class="details">
803
+
804
+ <div class="meta" style="clear: right;">
805
+ <div class="file">features/step_definitions/rest_client_steps.rb:15</div>
806
+ </div>
807
+
808
+ <!-- Comments -->
809
+ <div>
810
+
811
+ </div>
812
+
813
+
814
+ <!-- Source Code -->
815
+ <div class="method_details_list">
816
+ <table class="source_code">
817
+ <tr>
818
+ <td>
819
+ <pre class="lines">15
820
+ 16
821
+ 17
822
+ 18</pre>
823
+ </td>
824
+ <td>
825
+ <pre class="code"><span class='const'>Given</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^I have &quot;(GET|PUT|POST|DELETE)&quot; service for &quot;(.*?)&quot; as follows$</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='op'>|</span>
826
+ <span class='ivar'>@path</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span>
827
+ <span class='ivar'>@mockservice</span><span class='period'>.</span><span class='id identifier rubyid_store_msg'>store_msg</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
828
+ <span class='kw'>end</span></pre>
829
+ </td>
830
+ </tr>
831
+ </table>
832
+ </div>
833
+
834
+ <!-- Matching Step Instances -->
835
+
836
+ <div class='showSteps'>
837
+ [<a href='#' class='toggleSteps' alt="4 steps">Hide 4 steps</a>]
838
+ </div>
839
+
840
+ <div class="steps">
841
+
842
+
843
+ <div class="step odd">
844
+ <div>
845
+ <span class="predicate">
846
+ And
847
+ </span>
848
+ <span class="defined">
849
+ I have "<span class='match'>GET</span>" service for "<span class='match'>/test</span>" as follows
850
+ </span>
851
+ </div>
852
+
853
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:6</a>
854
+
855
+ <div style="clear: both;"></div>
856
+ </div>
857
+
858
+ <div class="step even">
859
+ <div>
860
+ <span class="predicate">
861
+ And
862
+ </span>
863
+ <span class="defined">
864
+ I have "<span class='match'>PUT</span>" service for "<span class='match'>/test</span>" as follows
865
+ </span>
866
+ </div>
867
+
868
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:25</a>
869
+
870
+ <div style="clear: both;"></div>
871
+ </div>
872
+
873
+ <div class="step odd">
874
+ <div>
875
+ <span class="predicate">
876
+ And
877
+ </span>
878
+ <span class="defined">
879
+ I have "<span class='match'>POST</span>" service for "<span class='match'>/test</span>" as follows
880
+ </span>
881
+ </div>
882
+
883
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:45</a>
884
+
885
+ <div style="clear: both;"></div>
886
+ </div>
887
+
888
+ <div class="step even">
889
+ <div>
890
+ <span class="predicate">
891
+ And
892
+ </span>
893
+ <span class="defined">
894
+ I have "<span class='match'>DELETE</span>" service for "<span class='match'>/test</span>" as follows
895
+ </span>
896
+ </div>
897
+
898
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:65</a>
899
+
900
+ <div style="clear: both;"></div>
901
+ </div>
902
+
903
+
904
+ </div>
905
+
906
+ </div>
907
+
908
+ <div style="margin: 30px 20px; border-top: 1px dotted #AAA;"></div>
909
+
910
+ </div>
911
+
912
+
913
+
914
+ <div class="transformer stepdefinition
915
+
916
+ ">
917
+ <a name="step_definition14-stepdefinition"></a>
918
+ <div class="title">
919
+ <span class="pre">Then</span>
920
+ <span class="name">/^the response prints like the following$/</span>
921
+ <div style="float: right;">
922
+ <a href="http://rubular.com/?regex=%2F%5Ethe+response+prints+like+the+following%24%2F" target="_blank">Rubular</a>
923
+
924
+
925
+ </div>
926
+ <div style="clear: both;"></div>
927
+ </div>
928
+
929
+ <div class="details">
930
+
931
+ <div class="meta" style="clear: right;">
932
+ <div class="file">features/step_definitions/rest_client_steps.rb:56</div>
933
+ </div>
934
+
935
+ <!-- Comments -->
936
+ <div>
937
+
938
+ </div>
939
+
940
+
941
+ <!-- Source Code -->
942
+ <div class="method_details_list">
943
+ <table class="source_code">
944
+ <tr>
945
+ <td>
946
+ <pre class="lines">56
947
+ 57
948
+ 58</pre>
949
+ </td>
950
+ <td>
951
+ <pre class="code"><span class='const'>Then</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^the response prints like the following$</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_response'>response</span><span class='op'>|</span>
952
+ <span class='id identifier rubyid_expect'>expect</span><span class='lparen'>(</span><span class='ivar'>@restbaby</span><span class='period'>.</span><span class='id identifier rubyid_print_last_response'>print_last_response</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to'>to</span> <span class='id identifier rubyid_eq'>eq</span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='rparen'>)</span>
953
+ <span class='kw'>end</span></pre>
954
+ </td>
955
+ </tr>
956
+ </table>
957
+ </div>
958
+
959
+ <!-- Matching Step Instances -->
960
+
961
+ <div class='showSteps'>
962
+ [<a href='#' class='toggleSteps' alt="4 steps">Hide 4 steps</a>]
963
+ </div>
964
+
965
+ <div class="steps">
966
+
967
+
968
+ <div class="step odd">
969
+ <div>
970
+ <span class="predicate">
971
+ And
972
+ </span>
973
+ <span class="defined">
974
+ the response prints like the following
975
+ </span>
976
+ </div>
977
+
978
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:14</a>
979
+
980
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:35</a>
981
+
982
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:55</a>
983
+
984
+ <a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:72</a>
985
+
986
+ <div style="clear: both;"></div>
987
+ </div>
988
+
989
+
990
+ </div>
991
+
992
+ </div>
993
+
994
+ <div style="margin: 30px 20px; border-top: 1px dotted #AAA;"></div>
995
+
996
+ </div>
997
+
998
+
999
+
1000
+ <div class="transformer stepdefinition
1001
+
1002
+ ">
1003
+ <a name="step_definition4-stepdefinition"></a>
1004
+ <div class="title">
1005
+ <span class="pre">Given</span>
1006
+ <span class="name">/^I have basic auth for user "(.*?)" and password "(.*?)"$/</span>
1007
+ <div style="float: right;">
1008
+ <a href="http://rubular.com/?regex=%2F%5EI+have+basic+auth+for+user+%22%28.%2A%3F%29%22+and+password+%22%28.%2A%3F%29%22%24%2F" target="_blank">Rubular</a>
1009
+
1010
+
1011
+ </div>
1012
+ <div style="clear: both;"></div>
1013
+ </div>
1014
+
1015
+ <div class="details">
1016
+
1017
+ <div class="meta" style="clear: right;">
1018
+ <div class="file">features/step_definitions/header_steps.rb:17</div>
1019
+ </div>
1020
+
1021
+ <!-- Comments -->
1022
+ <div>
1023
+
1024
+ </div>
1025
+
1026
+
1027
+ <!-- Source Code -->
1028
+ <div class="method_details_list">
1029
+ <table class="source_code">
1030
+ <tr>
1031
+ <td>
1032
+ <pre class="lines">17
1033
+ 18
1034
+ 19</pre>
1035
+ </td>
1036
+ <td>
1037
+ <pre class="code"><span class='const'>Given</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^I have basic auth for user &quot;(.*?)&quot; and password &quot;(.*?)&quot;$</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_user'>user</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='op'>|</span>
1038
+ <span class='ivar'>@restbaby</span><span class='period'>.</span><span class='id identifier rubyid_set_auth'>set_auth</span><span class='lparen'>(</span><span class='id identifier rubyid_user'>user</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='rparen'>)</span>
1039
+ <span class='kw'>end</span></pre>
1040
+ </td>
1041
+ </tr>
1042
+ </table>
1043
+ </div>
1044
+
1045
+ <!-- Matching Step Instances -->
1046
+
1047
+ <div class='showSteps'>
1048
+ [<a href='#' class='toggleSteps' alt="2 steps">Hide 2 steps</a>]
1049
+ </div>
1050
+
1051
+ <div class="steps">
1052
+
1053
+
1054
+ <div class="step odd">
1055
+ <div>
1056
+ <span class="predicate">
1057
+ And
1058
+ </span>
1059
+ <span class="defined">
1060
+ I have basic auth for user "<span class='match'>test</span>" and password "<span class='match'>rest</span>"
1061
+ </span>
1062
+ </div>
1063
+
1064
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:35</a>
1065
+
1066
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:44</a>
1067
+
1068
+ <div style="clear: both;"></div>
1069
+ </div>
1070
+
1071
+
1072
+ </div>
1073
+
1074
+ </div>
1075
+
1076
+ <div style="margin: 30px 20px; border-top: 1px dotted #AAA;"></div>
1077
+
1078
+ </div>
1079
+
1080
+
1081
+
1082
+ <div class="transformer stepdefinition
1083
+
1084
+ ">
1085
+ <a name="step_definition3-stepdefinition"></a>
1086
+ <div class="title">
1087
+ <span class="pre">When</span>
1088
+ <span class="name">/^I have the following headers?$/</span>
1089
+ <div style="float: right;">
1090
+ <a href="http://rubular.com/?regex=%2F%5EI+have+the+following+headers%3F%24%2F" target="_blank">Rubular</a>
1091
+
1092
+
1093
+ </div>
1094
+ <div style="clear: both;"></div>
1095
+ </div>
1096
+
1097
+ <div class="details">
1098
+
1099
+ <div class="meta" style="clear: right;">
1100
+ <div class="file">features/step_definitions/header_steps.rb:13</div>
1101
+ </div>
1102
+
1103
+ <!-- Comments -->
1104
+ <div>
1105
+
1106
+ </div>
1107
+
1108
+
1109
+ <!-- Source Code -->
1110
+ <div class="method_details_list">
1111
+ <table class="source_code">
1112
+ <tr>
1113
+ <td>
1114
+ <pre class="lines">13
1115
+ 14
1116
+ 15</pre>
1117
+ </td>
1118
+ <td>
1119
+ <pre class="code"><span class='const'>When</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^I have the following headers?$</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_table'>table</span><span class='op'>|</span>
1120
+ <span class='ivar'>@restbaby</span><span class='period'>.</span><span class='id identifier rubyid_set_headers'>set_headers</span><span class='lparen'>(</span><span class='id identifier rubyid_table'>table</span><span class='period'>.</span><span class='id identifier rubyid_rows_hash'>rows_hash</span><span class='rparen'>)</span>
1121
+ <span class='kw'>end</span></pre>
1122
+ </td>
1123
+ </tr>
1124
+ </table>
1125
+ </div>
1126
+
1127
+ <!-- Matching Step Instances -->
1128
+
1129
+ <div class='showSteps'>
1130
+ [<a href='#' class='toggleSteps' alt="2 steps">Hide 2 steps</a>]
1131
+ </div>
1132
+
1133
+ <div class="steps">
1134
+
1135
+
1136
+ <div class="step odd">
1137
+ <div>
1138
+ <span class="predicate">
1139
+ When
1140
+ </span>
1141
+ <span class="defined">
1142
+ I have the following header
1143
+ </span>
1144
+ </div>
1145
+
1146
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:9</a>
1147
+
1148
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:21</a>
1149
+
1150
+ <div style="clear: both;"></div>
1151
+ </div>
1152
+
1153
+
1154
+ </div>
1155
+
1156
+ </div>
1157
+
1158
+ <div style="margin: 30px 20px; border-top: 1px dotted #AAA;"></div>
1159
+
1160
+ </div>
1161
+
1162
+
1163
+
1164
+ <div class="transformer stepdefinition
1165
+
1166
+ ">
1167
+ <a name="step_definition2-stepdefinition"></a>
1168
+ <div class="title">
1169
+ <span class="pre">Given</span>
1170
+ <span class="name">/^I have "(GET|PUT|POST|DELETE)" service for "(.*?)" with the following headers$/</span>
1171
+ <div style="float: right;">
1172
+ <a href="http://rubular.com/?regex=%2F%5EI+have+%22%28GET%7CPUT%7CPOST%7CDELETE%29%22+service+for+%22%28.%2A%3F%29%22+with+the+following+headers%24%2F" target="_blank">Rubular</a>
1173
+
1174
+
1175
+ </div>
1176
+ <div style="clear: both;"></div>
1177
+ </div>
1178
+
1179
+ <div class="details">
1180
+
1181
+ <div class="meta" style="clear: right;">
1182
+ <div class="file">features/step_definitions/header_steps.rb:8</div>
1183
+ </div>
1184
+
1185
+ <!-- Comments -->
1186
+ <div>
1187
+
1188
+ </div>
1189
+
1190
+
1191
+ <!-- Source Code -->
1192
+ <div class="method_details_list">
1193
+ <table class="source_code">
1194
+ <tr>
1195
+ <td>
1196
+ <pre class="lines">8
1197
+ 9
1198
+ 10
1199
+ 11</pre>
1200
+ </td>
1201
+ <td>
1202
+ <pre class="code"><span class='const'>Given</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^I have &quot;(GET|PUT|POST|DELETE)&quot; service for &quot;(.*?)&quot; with the following headers$</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_table'>table</span><span class='op'>|</span>
1203
+ <span class='ivar'>@path</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span>
1204
+ <span class='ivar'>@mockservice</span><span class='period'>.</span><span class='id identifier rubyid_store_msg'>store_msg</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='const'>DEFAULT_MESSAGE</span><span class='comma'>,</span> <span class='id identifier rubyid_table'>table</span><span class='period'>.</span><span class='id identifier rubyid_rows_hash'>rows_hash</span><span class='rparen'>)</span>
1205
+ <span class='kw'>end</span></pre>
1206
+ </td>
1207
+ </tr>
1208
+ </table>
1209
+ </div>
1210
+
1211
+ <!-- Matching Step Instances -->
1212
+
1213
+ <div class='showSteps'>
1214
+ [<a href='#' class='toggleSteps' alt="2 steps">Hide 2 steps</a>]
1215
+ </div>
1216
+
1217
+ <div class="steps">
1218
+
1219
+
1220
+ <div class="step odd">
1221
+ <div>
1222
+ <span class="predicate">
1223
+ And
1224
+ </span>
1225
+ <span class="defined">
1226
+ I have "<span class='match'>GET</span>" service for "<span class='match'>/test</span>" with the following headers
1227
+ </span>
1228
+ </div>
1229
+
1230
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:6</a>
1231
+
1232
+ <div style="clear: both;"></div>
1233
+ </div>
1234
+
1235
+ <div class="step even">
1236
+ <div>
1237
+ <span class="predicate">
1238
+ And
1239
+ </span>
1240
+ <span class="defined">
1241
+ I have "<span class='match'>POST</span>" service for "<span class='match'>/test</span>" with the following headers
1242
+ </span>
1243
+ </div>
1244
+
1245
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:17</a>
1246
+
1247
+ <div style="clear: both;"></div>
1248
+ </div>
1249
+
1250
+
1251
+ </div>
1252
+
1253
+ </div>
1254
+
1255
+ <div style="margin: 30px 20px; border-top: 1px dotted #AAA;"></div>
1256
+
1257
+ </div>
1258
+
1259
+
1260
+
1261
+ <div class="transformer stepdefinition
1262
+
1263
+ ">
1264
+ <a name="step_definition1-stepdefinition"></a>
1265
+ <div class="title">
1266
+ <span class="pre">Given</span>
1267
+ <span class="name">/^I have a secure web service$/</span>
1268
+ <div style="float: right;">
1269
+ <a href="http://rubular.com/?regex=%2F%5EI+have+a+secure+web+service%24%2F" target="_blank">Rubular</a>
1270
+
1271
+
1272
+ </div>
1273
+ <div style="clear: both;"></div>
1274
+ </div>
1275
+
1276
+ <div class="details">
1277
+
1278
+ <div class="meta" style="clear: right;">
1279
+ <div class="file">features/step_definitions/header_steps.rb:1</div>
1280
+ </div>
1281
+
1282
+ <!-- Comments -->
1283
+ <div>
1284
+
1285
+ </div>
1286
+
1287
+
1288
+ <!-- Source Code -->
1289
+ <div class="method_details_list">
1290
+ <table class="source_code">
1291
+ <tr>
1292
+ <td>
1293
+ <pre class="lines">1
1294
+ 2
1295
+ 3
1296
+ 4
1297
+ 5
1298
+ 6</pre>
1299
+ </td>
1300
+ <td>
1301
+ <pre class="code"><span class='const'>Given</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^I have a secure web service$</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span> <span class='kw'>do</span>
1302
+ <span class='ivar'>@protocol</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>https</span><span class='tstring_end'>&#39;</span></span>
1303
+ <span class='ivar'>@server</span> <span class='op'>=</span> <span class='const'>FigNewton</span><span class='period'>.</span><span class='id identifier rubyid_server'>server</span>
1304
+ <span class='ivar'>@port</span> <span class='op'>=</span> <span class='const'>FigNewton</span><span class='period'>.</span><span class='id identifier rubyid_port'>port</span>
1305
+ <span class='ivar'>@mockservice</span> <span class='op'>=</span> <span class='const'>MockRestService</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='ivar'>@server</span><span class='comma'>,</span> <span class='ivar'>@port</span><span class='comma'>,</span> <span class='ivar'>@protocol</span><span class='rparen'>)</span>
1306
+ <span class='kw'>end</span></pre>
1307
+ </td>
1308
+ </tr>
1309
+ </table>
1310
+ </div>
1311
+
1312
+ <!-- Matching Step Instances -->
1313
+
1314
+ <div class='showSteps'>
1315
+ [<a href='#' class='toggleSteps' alt="1 steps">Hide 1 steps</a>]
1316
+ </div>
1317
+
1318
+ <div class="steps">
1319
+
1320
+
1321
+ <div class="step odd">
1322
+ <div>
1323
+ <span class="predicate">
1324
+ Given
1325
+ </span>
1326
+ <span class="defined">
1327
+ I have a secure web service
1328
+ </span>
1329
+ </div>
1330
+
1331
+ <a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:41</a>
1332
+
1333
+ <div style="clear: both;"></div>
1334
+ </div>
1335
+
1336
+
1337
+ </div>
1338
+
1339
+ </div>
1340
+
1341
+ <div style="margin: 30px 20px; border-top: 1px dotted #AAA;"></div>
1342
+
1343
+ </div>
1344
+
1345
+
1346
+
1347
+ <div class="transformer stepdefinition
1348
+ nodefinitions
1349
+ ">
1350
+ <a name="step_definition13-stepdefinition"></a>
1351
+ <div class="title">
1352
+ <span class="pre">Then</span>
1353
+ <span class="name">/^I receive the following$/</span>
1354
+ <div style="float: right;">
1355
+ <a href="http://rubular.com/?regex=%2F%5EI+receive+the+following%24%2F" target="_blank">Rubular</a>
1356
+
1357
+ | UNUSED
1358
+ </div>
1359
+ <div style="clear: both;"></div>
1360
+ </div>
1361
+
1362
+ <div class="details">
1363
+
1364
+ <div class="meta" style="clear: right;">
1365
+ <div class="file">features/step_definitions/rest_client_steps.rb:51</div>
1366
+ </div>
1367
+
1368
+ <!-- Comments -->
1369
+ <div>
1370
+
1371
+ </div>
1372
+
1373
+
1374
+ <!-- Source Code -->
1375
+ <div class="method_details_list">
1376
+ <table class="source_code">
1377
+ <tr>
1378
+ <td>
1379
+ <pre class="lines">51
1380
+ 52
1381
+ 53
1382
+ 54</pre>
1383
+ </td>
1384
+ <td>
1385
+ <pre class="code"><span class='const'>Then</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^I receive the following$</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_message'>message</span><span class='op'>|</span>
1386
+ <span class='id identifier rubyid_expect'>expect</span><span class='lparen'>(</span><span class='ivar'>@response</span><span class='period'>.</span><span class='id identifier rubyid_code'>code</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to'>to</span> <span class='id identifier rubyid_eq'>eq</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>200</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
1387
+ <span class='id identifier rubyid_expect'>expect</span><span class='lparen'>(</span><span class='ivar'>@response</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to'>to</span> <span class='id identifier rubyid_eq'>eq</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
1388
+ <span class='kw'>end</span></pre>
1389
+ </td>
1390
+ </tr>
1391
+ </table>
1392
+ </div>
1393
+
1394
+ <!-- Matching Step Instances -->
1395
+
1396
+ <div class="steps">
1397
+
1398
+ <div class="undefined">No steps were found to match this step definition.</div>
1399
+
1400
+ </div>
1401
+
1402
+ </div>
1403
+
1404
+ <div style="margin: 30px 20px; border-top: 1px dotted #AAA;"></div>
1405
+
1406
+ </div>
1407
+
1408
+
1409
+
1410
+ <div class="transformer stepdefinition
1411
+ nodefinitions
1412
+ ">
1413
+ <a name="step_definition11-stepdefinition"></a>
1414
+ <div class="title">
1415
+ <span class="pre">When</span>
1416
+ <span class="name">/^I pause$/</span>
1417
+ <div style="float: right;">
1418
+ <a href="http://rubular.com/?regex=%2F%5EI+pause%24%2F" target="_blank">Rubular</a>
1419
+
1420
+ | UNUSED
1421
+ </div>
1422
+ <div style="clear: both;"></div>
1423
+ </div>
1424
+
1425
+ <div class="details">
1426
+
1427
+ <div class="meta" style="clear: right;">
1428
+ <div class="file">features/step_definitions/rest_client_steps.rb:42</div>
1429
+ </div>
1430
+
1431
+ <!-- Comments -->
1432
+ <div>
1433
+
1434
+ </div>
1435
+
1436
+
1437
+ <!-- Source Code -->
1438
+ <div class="method_details_list">
1439
+ <table class="source_code">
1440
+ <tr>
1441
+ <td>
1442
+ <pre class="lines">42
1443
+ 43
1444
+ 44</pre>
1445
+ </td>
1446
+ <td>
1447
+ <pre class="code"><span class='const'>When</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^I pause$</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span> <span class='kw'>do</span>
1448
+ <span class='id identifier rubyid_pause'>pause</span><span class='lparen'>(</span><span class='rparen'>)</span>
1449
+ <span class='kw'>end</span></pre>
1450
+ </td>
1451
+ </tr>
1452
+ </table>
1453
+ </div>
1454
+
1455
+ <!-- Matching Step Instances -->
1456
+
1457
+ <div class="steps">
1458
+
1459
+ <div class="undefined">No steps were found to match this step definition.</div>
1460
+
1461
+ </div>
1462
+
1463
+ </div>
1464
+
1465
+ <div style="margin: 30px 20px; border-top: 1px dotted #AAA;"></div>
1466
+
1467
+ </div>
1468
+
1469
+ <div class="title">
1470
+
1471
+ <a class="control" id="steptransform">[Collapse All]</a>
1472
+ <div style="clear: right;"></div>
1473
+
1474
+
1475
+
1476
+ <a name="step_transforms">
1477
+
1478
+ <div class="name">Step Transforms</div>
1479
+ </div>
1480
+
1481
+ <div class="title">
1482
+
1483
+
1484
+
1485
+ <a name="undefined_steps">
1486
+
1487
+ <div class="name">Undefined Steps</div>
1488
+ </div>
1489
+
1490
+ <div class="transformer">
1491
+ <div class="steps">
1492
+
1493
+ <div class="steps">
1494
+ <div class="undefined">No undefined steps</div>
1495
+ </div>
1496
+
1497
+ </div>
1498
+ </div>
1499
+ </div>
1500
+
1501
+ <div id="footer">
1502
+ Generated on Tue Aug 6 23:42:43 2013 by
1503
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1504
+ 0.8.7 (ruby-2.0.0).
1505
+ </div>
1506
+
1507
+ </body>
1508
+ </html>