rest_baby 0.3 → 0.4
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 +3 -0
- data/Gemfile +6 -8
- data/doc/MockRestService.html +13 -5
- data/doc/_index.html +45 -4
- data/doc/class_list.html +1 -1
- data/doc/css/style.css +1 -1
- data/doc/feature_list.html +39 -39
- data/doc/file.README.html +5 -5
- data/doc/frames.html +7 -5
- data/doc/index.html +5 -5
- data/doc/js/app.js +2 -7
- data/doc/method_list.html +26 -20
- data/doc/requirements/features/headers/header_options.html +33 -45
- data/doc/requirements/features/headers.html +4 -5
- data/doc/requirements/features/print_response.html +138 -26
- data/doc/requirements/features/rest_client.html +23 -23
- data/doc/requirements/features.html +8 -9
- data/doc/requirements/step_transformers.html +230 -212
- data/doc/requirements/tags/authentication.html +3 -3
- data/doc/requirements/tags/core.html +3 -3
- data/doc/requirements/tags/delete.html +3 -3
- data/doc/requirements/tags/extended.html +3 -3
- data/doc/requirements/tags/get.html +3 -3
- data/doc/requirements/tags/headers.html +3 -3
- data/doc/requirements/tags/post.html +3 -3
- data/doc/requirements/tags/print.html +3 -3
- data/doc/requirements/tags/put.html +3 -3
- data/doc/requirements/tags.html +39 -40
- data/doc/requirements.html +9 -10
- data/doc/step_list.html +210 -166
- data/doc/stepdefinition_list.html +40 -40
- data/doc/tag_list.html +6 -12
- data/doc/top-level-namespace.html +14 -5
- data/features/step_definitions/rest_client_steps.rb +4 -4
- data/lib/rest_baby/version.rb +1 -1
- data/lib/rest_baby.rb +1 -1
- data/rest_baby.gemspec +1 -2
- metadata +23 -24
- data/doc/requirements/tags/wip.html +0 -187
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Step Definitions and Transforms
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7
|
9
|
+
— Documentation by YARD 0.8.7
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -98,7 +98,7 @@
|
|
98
98
|
<div class="summary">
|
99
99
|
<div>14<a href="#step_definitions">Step Definitions</a></div>
|
100
100
|
<div>0<a href="#step_transforms">Step Transforms</a></div>
|
101
|
-
<div>
|
101
|
+
<div>0<a href="#undefined_steps">Undefined Steps</a></div>
|
102
102
|
</div>
|
103
103
|
|
104
104
|
</div><div class="title">
|
@@ -118,7 +118,7 @@
|
|
118
118
|
<div class="transformer stepdefinition
|
119
119
|
|
120
120
|
">
|
121
|
-
<a name="
|
121
|
+
<a name="step_definition8-stepdefinition"></a>
|
122
122
|
<div class="title">
|
123
123
|
<span class="pre">Given</span>
|
124
124
|
<span class="name">/^I am a rest client$/</span>
|
@@ -179,29 +179,29 @@
|
|
179
179
|
</span>
|
180
180
|
</div>
|
181
181
|
|
182
|
-
<a class="definition" style="clear: right;" href="features/
|
182
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:8</a>
|
183
183
|
|
184
|
-
<a class="definition" style="clear: right;" href="features/
|
184
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:20</a>
|
185
185
|
|
186
|
-
<a class="definition" style="clear: right;" href="features/
|
186
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:34</a>
|
187
187
|
|
188
|
-
<a class="definition" style="clear: right;" href="features/
|
188
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:43</a>
|
189
189
|
|
190
190
|
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:10</a>
|
191
191
|
|
192
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:
|
192
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:29</a>
|
193
193
|
|
194
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:
|
194
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:49</a>
|
195
195
|
|
196
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:
|
196
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:69</a>
|
197
197
|
|
198
|
-
<a class="definition" style="clear: right;" href="features/
|
198
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:7</a>
|
199
199
|
|
200
|
-
<a class="definition" style="clear: right;" href="features/
|
200
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:15</a>
|
201
201
|
|
202
|
-
<a class="definition" style="clear: right;" href="features/
|
202
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:26</a>
|
203
203
|
|
204
|
-
<a class="definition" style="clear: right;" href="features/
|
204
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:37</a>
|
205
205
|
|
206
206
|
<div style="clear: both;"></div>
|
207
207
|
</div>
|
@@ -220,7 +220,7 @@
|
|
220
220
|
<div class="transformer stepdefinition
|
221
221
|
|
222
222
|
">
|
223
|
-
<a name="
|
223
|
+
<a name="step_definition12-stepdefinition"></a>
|
224
224
|
<div class="title">
|
225
225
|
<span class="pre">Then</span>
|
226
226
|
<span class="name">/^I receive the expected message$/</span>
|
@@ -235,7 +235,7 @@
|
|
235
235
|
<div class="details">
|
236
236
|
|
237
237
|
<div class="meta" style="clear: right;">
|
238
|
-
<div class="file">features/step_definitions/rest_client_steps.rb:
|
238
|
+
<div class="file">features/step_definitions/rest_client_steps.rb:47</div>
|
239
239
|
</div>
|
240
240
|
|
241
241
|
<!-- Comments -->
|
@@ -249,10 +249,10 @@
|
|
249
249
|
<table class="source_code">
|
250
250
|
<tr>
|
251
251
|
<td>
|
252
|
-
<pre class="lines">
|
253
|
-
47
|
252
|
+
<pre class="lines">47
|
254
253
|
48
|
255
|
-
49
|
254
|
+
49
|
255
|
+
50</pre>
|
256
256
|
</td>
|
257
257
|
<td>
|
258
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>
|
@@ -283,29 +283,29 @@
|
|
283
283
|
</span>
|
284
284
|
</div>
|
285
285
|
|
286
|
-
<a class="definition" style="clear: right;" href="features/
|
286
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:12</a>
|
287
287
|
|
288
|
-
<a class="definition" style="clear: right;" href="features/
|
288
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:28</a>
|
289
289
|
|
290
|
-
<a class="definition" style="clear: right;" href="features/
|
290
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:37</a>
|
291
291
|
|
292
|
-
<a class="definition" style="clear: right;" href="features/
|
292
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:46</a>
|
293
293
|
|
294
294
|
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:13</a>
|
295
295
|
|
296
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:
|
296
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:34</a>
|
297
297
|
|
298
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:
|
298
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:54</a>
|
299
299
|
|
300
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:
|
300
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:71</a>
|
301
301
|
|
302
|
-
<a class="definition" style="clear: right;" href="features/
|
302
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:9</a>
|
303
303
|
|
304
|
-
<a class="definition" style="clear: right;" href="features/
|
304
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:20</a>
|
305
305
|
|
306
|
-
<a class="definition" style="clear: right;" href="features/
|
306
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:31</a>
|
307
307
|
|
308
|
-
<a class="definition" style="clear: right;" href="features/
|
308
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:39</a>
|
309
309
|
|
310
310
|
<div style="clear: both;"></div>
|
311
311
|
</div>
|
@@ -324,7 +324,7 @@
|
|
324
324
|
<div class="transformer stepdefinition
|
325
325
|
|
326
326
|
">
|
327
|
-
<a name="
|
327
|
+
<a name="step_definition5-stepdefinition"></a>
|
328
328
|
<div class="title">
|
329
329
|
<span class="pre">Given</span>
|
330
330
|
<span class="name">/^I have a web service$/</span>
|
@@ -365,7 +365,7 @@
|
|
365
365
|
<span class='ivar'>@protocol</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>http</span><span class='tstring_end'>'</span></span>
|
366
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
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
|
-
|
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
369
|
<span class='kw'>end</span></pre>
|
370
370
|
</td>
|
371
371
|
</tr>
|
@@ -391,27 +391,27 @@
|
|
391
391
|
</span>
|
392
392
|
</div>
|
393
393
|
|
394
|
-
<a class="definition" style="clear: right;" href="features/
|
395
|
-
|
396
|
-
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:13</a>
|
394
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:5</a>
|
397
395
|
|
398
|
-
<a class="definition" style="clear: right;" href="features/
|
396
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:16</a>
|
399
397
|
|
400
|
-
<a class="definition" style="clear: right;" href="features/
|
398
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:32</a>
|
401
399
|
|
402
400
|
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:5</a>
|
403
401
|
|
404
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:
|
402
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:24</a>
|
405
403
|
|
406
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:
|
404
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:44</a>
|
407
405
|
|
408
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:
|
406
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:64</a>
|
409
407
|
|
410
|
-
<a class="definition" style="clear: right;" href="features/
|
408
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:5</a>
|
411
409
|
|
412
|
-
<a class="definition" style="clear: right;" href="features/
|
410
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:13</a>
|
413
411
|
|
414
|
-
<a class="definition" style="clear: right;" href="features/
|
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
415
|
|
416
416
|
<div style="clear: both;"></div>
|
417
417
|
</div>
|
@@ -430,7 +430,7 @@
|
|
430
430
|
<div class="transformer stepdefinition
|
431
431
|
|
432
432
|
">
|
433
|
-
<a name="
|
433
|
+
<a name="step_definition9-stepdefinition"></a>
|
434
434
|
<div class="title">
|
435
435
|
<span class="pre">When</span>
|
436
436
|
<span class="name">/^I "(GET|DELETE)" from the web service$/</span>
|
@@ -466,7 +466,8 @@
|
|
466
466
|
28
|
467
467
|
29
|
468
468
|
30
|
469
|
-
31
|
469
|
+
31
|
470
|
+
32</pre>
|
470
471
|
</td>
|
471
472
|
<td>
|
472
473
|
<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 "(GET|DELETE)" 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>
|
@@ -474,7 +475,8 @@
|
|
474
475
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>get</span><span class='tstring_end'>'</span></span>
|
475
476
|
<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>
|
476
477
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>delete</span><span class='tstring_end'>'</span></span>
|
477
|
-
<span class='
|
478
|
+
<span class='comment'># @response = @restbaby.delete(@path)
|
479
|
+
</span> <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>
|
478
480
|
<span class='kw'>end</span>
|
479
481
|
<span class='kw'>end</span></pre>
|
480
482
|
</td>
|
@@ -494,23 +496,23 @@
|
|
494
496
|
<div class="step odd">
|
495
497
|
<div>
|
496
498
|
<span class="predicate">
|
497
|
-
|
499
|
+
And
|
498
500
|
</span>
|
499
501
|
<span class="defined">
|
500
502
|
I "<span class='match'>GET</span>" from the web service
|
501
503
|
</span>
|
502
504
|
</div>
|
503
505
|
|
504
|
-
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:8</a>
|
505
|
-
|
506
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:12</a>
|
507
|
-
|
508
506
|
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:11</a>
|
509
507
|
|
510
508
|
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:36</a>
|
511
509
|
|
512
510
|
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:45</a>
|
513
511
|
|
512
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:12</a>
|
513
|
+
|
514
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:8</a>
|
515
|
+
|
514
516
|
<div style="clear: both;"></div>
|
515
517
|
</div>
|
516
518
|
|
@@ -524,9 +526,9 @@
|
|
524
526
|
</span>
|
525
527
|
</div>
|
526
528
|
|
527
|
-
<a class="definition" style="clear: right;" href="features/
|
529
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:70</a>
|
528
530
|
|
529
|
-
<a class="definition" style="clear: right;" href="features/
|
531
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:38</a>
|
530
532
|
|
531
533
|
<div style="clear: both;"></div>
|
532
534
|
</div>
|
@@ -545,7 +547,7 @@
|
|
545
547
|
<div class="transformer stepdefinition
|
546
548
|
|
547
549
|
">
|
548
|
-
<a name="
|
550
|
+
<a name="step_definition6-stepdefinition"></a>
|
549
551
|
<div class="title">
|
550
552
|
<span class="pre">Given</span>
|
551
553
|
<span class="name">/^I have "(GET|PUT|POST|DELETE)" service for "(.*?)"$/</span>
|
@@ -608,6 +610,10 @@
|
|
608
610
|
</span>
|
609
611
|
</div>
|
610
612
|
|
613
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:33</a>
|
614
|
+
|
615
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:42</a>
|
616
|
+
|
611
617
|
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:6</a>
|
612
618
|
|
613
619
|
<div style="clear: both;"></div>
|
@@ -658,23 +664,6 @@
|
|
658
664
|
<div style="clear: both;"></div>
|
659
665
|
</div>
|
660
666
|
|
661
|
-
<div class="step odd">
|
662
|
-
<div>
|
663
|
-
<span class="predicate">
|
664
|
-
And
|
665
|
-
</span>
|
666
|
-
<span class="defined">
|
667
|
-
I have "<span class='match'>GET</span>" service for "<span class='match'>/test" for user "test" and password "rest</span>"
|
668
|
-
</span>
|
669
|
-
</div>
|
670
|
-
|
671
|
-
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:33</a>
|
672
|
-
|
673
|
-
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:42</a>
|
674
|
-
|
675
|
-
<div style="clear: both;"></div>
|
676
|
-
</div>
|
677
|
-
|
678
667
|
|
679
668
|
</div>
|
680
669
|
|
@@ -689,7 +678,7 @@
|
|
689
678
|
<div class="transformer stepdefinition
|
690
679
|
|
691
680
|
">
|
692
|
-
<a name="
|
681
|
+
<a name="step_definition10-stepdefinition"></a>
|
693
682
|
<div class="title">
|
694
683
|
<span class="pre">When</span>
|
695
684
|
<span class="name">/^I "(PUT|POST)" to the web service with the following$/</span>
|
@@ -704,7 +693,7 @@
|
|
704
693
|
<div class="details">
|
705
694
|
|
706
695
|
<div class="meta" style="clear: right;">
|
707
|
-
<div class="file">features/step_definitions/rest_client_steps.rb:
|
696
|
+
<div class="file">features/step_definitions/rest_client_steps.rb:34</div>
|
708
697
|
</div>
|
709
698
|
|
710
699
|
<!-- Comments -->
|
@@ -718,14 +707,14 @@
|
|
718
707
|
<table class="source_code">
|
719
708
|
<tr>
|
720
709
|
<td>
|
721
|
-
<pre class="lines">
|
722
|
-
34
|
710
|
+
<pre class="lines">34
|
723
711
|
35
|
724
712
|
36
|
725
713
|
37
|
726
714
|
38
|
727
715
|
39
|
728
|
-
40
|
716
|
+
40
|
717
|
+
41</pre>
|
729
718
|
</td>
|
730
719
|
<td>
|
731
720
|
<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 "(PUT|POST)" 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>
|
@@ -753,16 +742,18 @@
|
|
753
742
|
<div class="step odd">
|
754
743
|
<div>
|
755
744
|
<span class="predicate">
|
756
|
-
|
745
|
+
And
|
757
746
|
</span>
|
758
747
|
<span class="defined">
|
759
|
-
I "<span class='match'>
|
748
|
+
I "<span class='match'>POST</span>" to the web service with the following
|
760
749
|
</span>
|
761
750
|
</div>
|
762
751
|
|
763
|
-
<a class="definition" style="clear: right;" href="features/
|
752
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:24</a>
|
764
753
|
|
765
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:
|
754
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:50</a>
|
755
|
+
|
756
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:27</a>
|
766
757
|
|
767
758
|
<div style="clear: both;"></div>
|
768
759
|
</div>
|
@@ -773,15 +764,13 @@
|
|
773
764
|
When
|
774
765
|
</span>
|
775
766
|
<span class="defined">
|
776
|
-
I "<span class='match'>
|
767
|
+
I "<span class='match'>PUT</span>" to the web service with the following
|
777
768
|
</span>
|
778
769
|
</div>
|
779
770
|
|
780
|
-
<a class="definition" style="clear: right;" href="features/
|
781
|
-
|
782
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:37</a>
|
771
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:30</a>
|
783
772
|
|
784
|
-
<a class="definition" style="clear: right;" href="features/
|
773
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:16</a>
|
785
774
|
|
786
775
|
<div style="clear: both;"></div>
|
787
776
|
</div>
|
@@ -800,7 +789,7 @@
|
|
800
789
|
<div class="transformer stepdefinition
|
801
790
|
|
802
791
|
">
|
803
|
-
<a name="
|
792
|
+
<a name="step_definition7-stepdefinition"></a>
|
804
793
|
<div class="title">
|
805
794
|
<span class="pre">Given</span>
|
806
795
|
<span class="name">/^I have "(GET|PUT|POST|DELETE)" service for "(.*?)" as follows$/</span>
|
@@ -878,7 +867,7 @@
|
|
878
867
|
</span>
|
879
868
|
</div>
|
880
869
|
|
881
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:
|
870
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:25</a>
|
882
871
|
|
883
872
|
<div style="clear: both;"></div>
|
884
873
|
</div>
|
@@ -893,7 +882,7 @@
|
|
893
882
|
</span>
|
894
883
|
</div>
|
895
884
|
|
896
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:
|
885
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:45</a>
|
897
886
|
|
898
887
|
<div style="clear: both;"></div>
|
899
888
|
</div>
|
@@ -908,7 +897,7 @@
|
|
908
897
|
</span>
|
909
898
|
</div>
|
910
899
|
|
911
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:
|
900
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:65</a>
|
912
901
|
|
913
902
|
<div style="clear: both;"></div>
|
914
903
|
</div>
|
@@ -927,12 +916,12 @@
|
|
927
916
|
<div class="transformer stepdefinition
|
928
917
|
|
929
918
|
">
|
930
|
-
<a name="
|
919
|
+
<a name="step_definition14-stepdefinition"></a>
|
931
920
|
<div class="title">
|
932
|
-
<span class="pre">
|
933
|
-
<span class="name">/^
|
921
|
+
<span class="pre">Then</span>
|
922
|
+
<span class="name">/^the response prints like the following$/</span>
|
934
923
|
<div style="float: right;">
|
935
|
-
<a href="http://rubular.com/?regex=%2F%
|
924
|
+
<a href="http://rubular.com/?regex=%2F%5Ethe+response+prints+like+the+following%24%2F" target="_blank">Rubular</a>
|
936
925
|
|
937
926
|
|
938
927
|
</div>
|
@@ -942,7 +931,7 @@
|
|
942
931
|
<div class="details">
|
943
932
|
|
944
933
|
<div class="meta" style="clear: right;">
|
945
|
-
<div class="file">features/step_definitions/
|
934
|
+
<div class="file">features/step_definitions/rest_client_steps.rb:57</div>
|
946
935
|
</div>
|
947
936
|
|
948
937
|
<!-- Comments -->
|
@@ -956,13 +945,13 @@
|
|
956
945
|
<table class="source_code">
|
957
946
|
<tr>
|
958
947
|
<td>
|
959
|
-
<pre class="lines">
|
960
|
-
|
961
|
-
|
948
|
+
<pre class="lines">57
|
949
|
+
58
|
950
|
+
59</pre>
|
962
951
|
</td>
|
963
952
|
<td>
|
964
|
-
<pre class="code"><span class='const'>
|
965
|
-
|
953
|
+
<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>
|
954
|
+
<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>
|
966
955
|
<span class='kw'>end</span></pre>
|
967
956
|
</td>
|
968
957
|
</tr>
|
@@ -972,7 +961,7 @@
|
|
972
961
|
<!-- Matching Step Instances -->
|
973
962
|
|
974
963
|
<div class='showSteps'>
|
975
|
-
[<a href='#' class='toggleSteps' alt="
|
964
|
+
[<a href='#' class='toggleSteps' alt="4 steps">Hide 4 steps</a>]
|
976
965
|
</div>
|
977
966
|
|
978
967
|
<div class="steps">
|
@@ -981,16 +970,20 @@
|
|
981
970
|
<div class="step odd">
|
982
971
|
<div>
|
983
972
|
<span class="predicate">
|
984
|
-
|
973
|
+
And
|
985
974
|
</span>
|
986
975
|
<span class="defined">
|
987
|
-
|
976
|
+
the response prints like the following
|
988
977
|
</span>
|
989
978
|
</div>
|
990
979
|
|
991
|
-
<a class="definition" style="clear: right;" href="features/
|
980
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:14</a>
|
992
981
|
|
993
|
-
<a class="definition" style="clear: right;" href="features/
|
982
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:35</a>
|
983
|
+
|
984
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:55</a>
|
985
|
+
|
986
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:72</a>
|
994
987
|
|
995
988
|
<div style="clear: both;"></div>
|
996
989
|
</div>
|
@@ -1009,7 +1002,7 @@
|
|
1009
1002
|
<div class="transformer stepdefinition
|
1010
1003
|
|
1011
1004
|
">
|
1012
|
-
<a name="
|
1005
|
+
<a name="step_definition4-stepdefinition"></a>
|
1013
1006
|
<div class="title">
|
1014
1007
|
<span class="pre">Given</span>
|
1015
1008
|
<span class="name">/^I have basic auth for user "(.*?)" and password "(.*?)"$/</span>
|
@@ -1024,7 +1017,7 @@
|
|
1024
1017
|
<div class="details">
|
1025
1018
|
|
1026
1019
|
<div class="meta" style="clear: right;">
|
1027
|
-
<div class="file">features/step_definitions/header_steps.rb:
|
1020
|
+
<div class="file">features/step_definitions/header_steps.rb:17</div>
|
1028
1021
|
</div>
|
1029
1022
|
|
1030
1023
|
<!-- Comments -->
|
@@ -1038,13 +1031,13 @@
|
|
1038
1031
|
<table class="source_code">
|
1039
1032
|
<tr>
|
1040
1033
|
<td>
|
1041
|
-
<pre class="lines">
|
1042
|
-
|
1043
|
-
|
1034
|
+
<pre class="lines">17
|
1035
|
+
18
|
1036
|
+
19</pre>
|
1044
1037
|
</td>
|
1045
1038
|
<td>
|
1046
1039
|
<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 "(.*?)" and password "(.*?)"$</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>
|
1047
|
-
|
1040
|
+
<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>
|
1048
1041
|
<span class='kw'>end</span></pre>
|
1049
1042
|
</td>
|
1050
1043
|
</tr>
|
@@ -1091,12 +1084,12 @@
|
|
1091
1084
|
<div class="transformer stepdefinition
|
1092
1085
|
|
1093
1086
|
">
|
1094
|
-
<a name="
|
1087
|
+
<a name="step_definition3-stepdefinition"></a>
|
1095
1088
|
<div class="title">
|
1096
|
-
<span class="pre">
|
1097
|
-
<span class="name">/^I have
|
1089
|
+
<span class="pre">When</span>
|
1090
|
+
<span class="name">/^I have the following headers?$/</span>
|
1098
1091
|
<div style="float: right;">
|
1099
|
-
<a href="http://rubular.com/?regex=%2F%5EI+have+
|
1092
|
+
<a href="http://rubular.com/?regex=%2F%5EI+have+the+following+headers%3F%24%2F" target="_blank">Rubular</a>
|
1100
1093
|
|
1101
1094
|
|
1102
1095
|
</div>
|
@@ -1106,7 +1099,7 @@
|
|
1106
1099
|
<div class="details">
|
1107
1100
|
|
1108
1101
|
<div class="meta" style="clear: right;">
|
1109
|
-
<div class="file">features/step_definitions/header_steps.rb:
|
1102
|
+
<div class="file">features/step_definitions/header_steps.rb:13</div>
|
1110
1103
|
</div>
|
1111
1104
|
|
1112
1105
|
<!-- Comments -->
|
@@ -1120,19 +1113,13 @@
|
|
1120
1113
|
<table class="source_code">
|
1121
1114
|
<tr>
|
1122
1115
|
<td>
|
1123
|
-
<pre class="lines">
|
1124
|
-
|
1125
|
-
|
1126
|
-
4
|
1127
|
-
5
|
1128
|
-
6</pre>
|
1116
|
+
<pre class="lines">13
|
1117
|
+
14
|
1118
|
+
15</pre>
|
1129
1119
|
</td>
|
1130
1120
|
<td>
|
1131
|
-
<pre class="code"><span class='const'>
|
1132
|
-
<span class='ivar'>@
|
1133
|
-
<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>
|
1134
|
-
<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>
|
1135
|
-
<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>
|
1121
|
+
<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>
|
1122
|
+
<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>
|
1136
1123
|
<span class='kw'>end</span></pre>
|
1137
1124
|
</td>
|
1138
1125
|
</tr>
|
@@ -1142,7 +1129,7 @@
|
|
1142
1129
|
<!-- Matching Step Instances -->
|
1143
1130
|
|
1144
1131
|
<div class='showSteps'>
|
1145
|
-
[<a href='#' class='toggleSteps' alt="
|
1132
|
+
[<a href='#' class='toggleSteps' alt="2 steps">Hide 2 steps</a>]
|
1146
1133
|
</div>
|
1147
1134
|
|
1148
1135
|
<div class="steps">
|
@@ -1151,14 +1138,16 @@
|
|
1151
1138
|
<div class="step odd">
|
1152
1139
|
<div>
|
1153
1140
|
<span class="predicate">
|
1154
|
-
|
1141
|
+
When
|
1155
1142
|
</span>
|
1156
1143
|
<span class="defined">
|
1157
|
-
I have
|
1144
|
+
I have the following header
|
1158
1145
|
</span>
|
1159
1146
|
</div>
|
1160
1147
|
|
1161
|
-
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:
|
1148
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:9</a>
|
1149
|
+
|
1150
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:21</a>
|
1162
1151
|
|
1163
1152
|
<div style="clear: both;"></div>
|
1164
1153
|
</div>
|
@@ -1175,16 +1164,16 @@
|
|
1175
1164
|
|
1176
1165
|
|
1177
1166
|
<div class="transformer stepdefinition
|
1178
|
-
|
1167
|
+
|
1179
1168
|
">
|
1180
|
-
<a name="
|
1169
|
+
<a name="step_definition2-stepdefinition"></a>
|
1181
1170
|
<div class="title">
|
1182
1171
|
<span class="pre">Given</span>
|
1183
|
-
<span class="name">/^I have "(GET|PUT|POST|DELETE)" service for "(
|
1172
|
+
<span class="name">/^I have "(GET|PUT|POST|DELETE)" service for "(.*?)" with the following headers$/</span>
|
1184
1173
|
<div style="float: right;">
|
1185
|
-
<a href="http://rubular.com/?regex=%2F%5EI+have+%22%28GET%7CPUT%7CPOST%7CDELETE%29%22+service+for+%22%28%
|
1174
|
+
<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>
|
1175
|
+
|
1186
1176
|
|
1187
|
-
| UNUSED
|
1188
1177
|
</div>
|
1189
1178
|
<div style="clear: both;"></div>
|
1190
1179
|
</div>
|
@@ -1192,7 +1181,7 @@
|
|
1192
1181
|
<div class="details">
|
1193
1182
|
|
1194
1183
|
<div class="meta" style="clear: right;">
|
1195
|
-
<div class="file">features/step_definitions/header_steps.rb:
|
1184
|
+
<div class="file">features/step_definitions/header_steps.rb:8</div>
|
1196
1185
|
</div>
|
1197
1186
|
|
1198
1187
|
<!-- Comments -->
|
@@ -1206,15 +1195,15 @@
|
|
1206
1195
|
<table class="source_code">
|
1207
1196
|
<tr>
|
1208
1197
|
<td>
|
1209
|
-
<pre class="lines">
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1198
|
+
<pre class="lines">8
|
1199
|
+
9
|
1200
|
+
10
|
1201
|
+
11</pre>
|
1213
1202
|
</td>
|
1214
1203
|
<td>
|
1215
|
-
<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 "(GET|PUT|POST|DELETE)" service for "(
|
1204
|
+
<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 "(GET|PUT|POST|DELETE)" service for "(.*?)" 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>
|
1216
1205
|
<span class='ivar'>@path</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span>
|
1217
|
-
<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='
|
1206
|
+
<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>
|
1218
1207
|
<span class='kw'>end</span></pre>
|
1219
1208
|
</td>
|
1220
1209
|
</tr>
|
@@ -1223,9 +1212,43 @@
|
|
1223
1212
|
|
1224
1213
|
<!-- Matching Step Instances -->
|
1225
1214
|
|
1215
|
+
<div class='showSteps'>
|
1216
|
+
[<a href='#' class='toggleSteps' alt="2 steps">Hide 2 steps</a>]
|
1217
|
+
</div>
|
1218
|
+
|
1226
1219
|
<div class="steps">
|
1227
1220
|
|
1228
|
-
|
1221
|
+
|
1222
|
+
<div class="step odd">
|
1223
|
+
<div>
|
1224
|
+
<span class="predicate">
|
1225
|
+
And
|
1226
|
+
</span>
|
1227
|
+
<span class="defined">
|
1228
|
+
I have "<span class='match'>GET</span>" service for "<span class='match'>/test</span>" with the following headers
|
1229
|
+
</span>
|
1230
|
+
</div>
|
1231
|
+
|
1232
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:6</a>
|
1233
|
+
|
1234
|
+
<div style="clear: both;"></div>
|
1235
|
+
</div>
|
1236
|
+
|
1237
|
+
<div class="step even">
|
1238
|
+
<div>
|
1239
|
+
<span class="predicate">
|
1240
|
+
And
|
1241
|
+
</span>
|
1242
|
+
<span class="defined">
|
1243
|
+
I have "<span class='match'>POST</span>" service for "<span class='match'>/test</span>" with the following headers
|
1244
|
+
</span>
|
1245
|
+
</div>
|
1246
|
+
|
1247
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:17</a>
|
1248
|
+
|
1249
|
+
<div style="clear: both;"></div>
|
1250
|
+
</div>
|
1251
|
+
|
1229
1252
|
|
1230
1253
|
</div>
|
1231
1254
|
|
@@ -1238,16 +1261,16 @@
|
|
1238
1261
|
|
1239
1262
|
|
1240
1263
|
<div class="transformer stepdefinition
|
1241
|
-
|
1264
|
+
|
1242
1265
|
">
|
1243
|
-
<a name="
|
1266
|
+
<a name="step_definition1-stepdefinition"></a>
|
1244
1267
|
<div class="title">
|
1245
|
-
<span class="pre">
|
1246
|
-
<span class="name">/^I
|
1268
|
+
<span class="pre">Given</span>
|
1269
|
+
<span class="name">/^I have a secure web service$/</span>
|
1247
1270
|
<div style="float: right;">
|
1248
|
-
<a href="http://rubular.com/?regex=%2F%5EI+
|
1271
|
+
<a href="http://rubular.com/?regex=%2F%5EI+have+a+secure+web+service%24%2F" target="_blank">Rubular</a>
|
1272
|
+
|
1249
1273
|
|
1250
|
-
| UNUSED
|
1251
1274
|
</div>
|
1252
1275
|
<div style="clear: both;"></div>
|
1253
1276
|
</div>
|
@@ -1255,7 +1278,7 @@
|
|
1255
1278
|
<div class="details">
|
1256
1279
|
|
1257
1280
|
<div class="meta" style="clear: right;">
|
1258
|
-
<div class="file">features/step_definitions/
|
1281
|
+
<div class="file">features/step_definitions/header_steps.rb:1</div>
|
1259
1282
|
</div>
|
1260
1283
|
|
1261
1284
|
<!-- Comments -->
|
@@ -1269,13 +1292,19 @@
|
|
1269
1292
|
<table class="source_code">
|
1270
1293
|
<tr>
|
1271
1294
|
<td>
|
1272
|
-
<pre class="lines">
|
1273
|
-
|
1274
|
-
|
1295
|
+
<pre class="lines">1
|
1296
|
+
2
|
1297
|
+
3
|
1298
|
+
4
|
1299
|
+
5
|
1300
|
+
6</pre>
|
1275
1301
|
</td>
|
1276
1302
|
<td>
|
1277
|
-
<pre class="code"><span class='const'>
|
1278
|
-
|
1303
|
+
<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>
|
1304
|
+
<span class='ivar'>@protocol</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>https</span><span class='tstring_end'>'</span></span>
|
1305
|
+
<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>
|
1306
|
+
<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>
|
1307
|
+
<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>
|
1279
1308
|
<span class='kw'>end</span></pre>
|
1280
1309
|
</td>
|
1281
1310
|
</tr>
|
@@ -1284,9 +1313,28 @@
|
|
1284
1313
|
|
1285
1314
|
<!-- Matching Step Instances -->
|
1286
1315
|
|
1316
|
+
<div class='showSteps'>
|
1317
|
+
[<a href='#' class='toggleSteps' alt="1 steps">Hide 1 steps</a>]
|
1318
|
+
</div>
|
1319
|
+
|
1287
1320
|
<div class="steps">
|
1288
1321
|
|
1289
|
-
|
1322
|
+
|
1323
|
+
<div class="step odd">
|
1324
|
+
<div>
|
1325
|
+
<span class="predicate">
|
1326
|
+
Given
|
1327
|
+
</span>
|
1328
|
+
<span class="defined">
|
1329
|
+
I have a secure web service
|
1330
|
+
</span>
|
1331
|
+
</div>
|
1332
|
+
|
1333
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:41</a>
|
1334
|
+
|
1335
|
+
<div style="clear: both;"></div>
|
1336
|
+
</div>
|
1337
|
+
|
1290
1338
|
|
1291
1339
|
</div>
|
1292
1340
|
|
@@ -1301,12 +1349,12 @@
|
|
1301
1349
|
<div class="transformer stepdefinition
|
1302
1350
|
nodefinitions
|
1303
1351
|
">
|
1304
|
-
<a name="
|
1352
|
+
<a name="step_definition13-stepdefinition"></a>
|
1305
1353
|
<div class="title">
|
1306
|
-
<span class="pre">
|
1307
|
-
<span class="name">/^I
|
1354
|
+
<span class="pre">Then</span>
|
1355
|
+
<span class="name">/^I receive the following$/</span>
|
1308
1356
|
<div style="float: right;">
|
1309
|
-
<a href="http://rubular.com/?regex=%2F%5EI+
|
1357
|
+
<a href="http://rubular.com/?regex=%2F%5EI+receive+the+following%24%2F" target="_blank">Rubular</a>
|
1310
1358
|
|
1311
1359
|
| UNUSED
|
1312
1360
|
</div>
|
@@ -1316,7 +1364,7 @@
|
|
1316
1364
|
<div class="details">
|
1317
1365
|
|
1318
1366
|
<div class="meta" style="clear: right;">
|
1319
|
-
<div class="file">features/step_definitions/
|
1367
|
+
<div class="file">features/step_definitions/rest_client_steps.rb:52</div>
|
1320
1368
|
</div>
|
1321
1369
|
|
1322
1370
|
<!-- Comments -->
|
@@ -1330,15 +1378,15 @@
|
|
1330
1378
|
<table class="source_code">
|
1331
1379
|
<tr>
|
1332
1380
|
<td>
|
1333
|
-
<pre class="lines">
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1381
|
+
<pre class="lines">52
|
1382
|
+
53
|
1383
|
+
54
|
1384
|
+
55</pre>
|
1337
1385
|
</td>
|
1338
1386
|
<td>
|
1339
|
-
<pre class="code"><span class='const'>
|
1340
|
-
<span class='ivar'>@
|
1341
|
-
<span class='
|
1387
|
+
<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>
|
1388
|
+
<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'>'</span><span class='tstring_content'>200</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
1389
|
+
<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>
|
1342
1390
|
<span class='kw'>end</span></pre>
|
1343
1391
|
</td>
|
1344
1392
|
</tr>
|
@@ -1364,12 +1412,12 @@
|
|
1364
1412
|
<div class="transformer stepdefinition
|
1365
1413
|
nodefinitions
|
1366
1414
|
">
|
1367
|
-
<a name="
|
1415
|
+
<a name="step_definition11-stepdefinition"></a>
|
1368
1416
|
<div class="title">
|
1369
|
-
<span class="pre">
|
1370
|
-
<span class="name">/^I
|
1417
|
+
<span class="pre">When</span>
|
1418
|
+
<span class="name">/^I pause$/</span>
|
1371
1419
|
<div style="float: right;">
|
1372
|
-
<a href="http://rubular.com/?regex=%2F%5EI+
|
1420
|
+
<a href="http://rubular.com/?regex=%2F%5EI+pause%24%2F" target="_blank">Rubular</a>
|
1373
1421
|
|
1374
1422
|
| UNUSED
|
1375
1423
|
</div>
|
@@ -1379,7 +1427,7 @@
|
|
1379
1427
|
<div class="details">
|
1380
1428
|
|
1381
1429
|
<div class="meta" style="clear: right;">
|
1382
|
-
<div class="file">features/step_definitions/rest_client_steps.rb:
|
1430
|
+
<div class="file">features/step_definitions/rest_client_steps.rb:43</div>
|
1383
1431
|
</div>
|
1384
1432
|
|
1385
1433
|
<!-- Comments -->
|
@@ -1393,15 +1441,13 @@
|
|
1393
1441
|
<table class="source_code">
|
1394
1442
|
<tr>
|
1395
1443
|
<td>
|
1396
|
-
<pre class="lines">
|
1397
|
-
|
1398
|
-
|
1399
|
-
54</pre>
|
1444
|
+
<pre class="lines">43
|
1445
|
+
44
|
1446
|
+
45</pre>
|
1400
1447
|
</td>
|
1401
1448
|
<td>
|
1402
|
-
<pre class="code"><span class='const'>
|
1403
|
-
|
1404
|
-
<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>
|
1449
|
+
<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>
|
1450
|
+
<span class='id identifier rubyid_pause'>pause</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
1405
1451
|
<span class='kw'>end</span></pre>
|
1406
1452
|
</td>
|
1407
1453
|
</tr>
|
@@ -1446,46 +1492,18 @@
|
|
1446
1492
|
<div class="transformer">
|
1447
1493
|
<div class="steps">
|
1448
1494
|
|
1449
|
-
|
1450
|
-
|
1451
|
-
<div>
|
1452
|
-
<span class="predicate">And </span>
|
1453
|
-
<span class="undefined">
|
1454
|
-
I have "GET" service for "/test" with the following headers
|
1455
|
-
</span>
|
1456
|
-
</div>
|
1457
|
-
|
1458
|
-
<a class="definition" style="clear: right;" href="features/headers/header_options.html">
|
1459
|
-
features/headers/header_options.feature:6
|
1460
|
-
</a>
|
1461
|
-
|
1462
|
-
<div style="clear: both;"></div>
|
1463
|
-
</div>
|
1464
|
-
|
1465
|
-
<div class="step even">
|
1466
|
-
<div>
|
1467
|
-
<span class="predicate">And </span>
|
1468
|
-
<span class="undefined">
|
1469
|
-
I have "POST" service for "/test" with the following headers
|
1470
|
-
</span>
|
1471
|
-
</div>
|
1472
|
-
|
1473
|
-
<a class="definition" style="clear: right;" href="features/headers/header_options.html">
|
1474
|
-
features/headers/header_options.feature:17
|
1475
|
-
</a>
|
1476
|
-
|
1477
|
-
<div style="clear: both;"></div>
|
1495
|
+
<div class="steps">
|
1496
|
+
<div class="undefined">No undefined steps</div>
|
1478
1497
|
</div>
|
1479
1498
|
|
1480
|
-
|
1481
1499
|
</div>
|
1482
1500
|
</div>
|
1483
1501
|
</div>
|
1484
1502
|
|
1485
1503
|
<div id="footer">
|
1486
|
-
Generated on
|
1504
|
+
Generated on Sat Aug 10 17:19:42 2013 by
|
1487
1505
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1488
|
-
0.8.7
|
1506
|
+
0.8.7 (ruby-2.0.0).
|
1489
1507
|
</div>
|
1490
1508
|
|
1491
1509
|
</body>
|