rest_baby 0.2 → 0.3
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 +6 -1
- data/Gemfile +3 -1
- data/cucumber.yml +1 -1
- data/doc/MockRestService.html +5 -13
- data/doc/RestBaby/Client.html +13 -13
- data/doc/RestBaby.html +1 -1
- data/doc/_index.html +4 -45
- 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 +5 -7
- data/doc/index.html +5 -5
- data/doc/js/app.js +7 -2
- data/doc/method_list.html +20 -26
- data/doc/requirements/features/headers/header_options.html +45 -33
- data/doc/requirements/features/headers.html +5 -4
- data/doc/requirements/features/print_response.html +26 -138
- data/doc/requirements/features/rest_client.html +23 -23
- data/doc/requirements/features.html +9 -8
- data/doc/requirements/step_transformers.html +206 -222
- 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/wip.html +187 -0
- data/doc/requirements/tags.html +40 -39
- data/doc/requirements.html +10 -9
- data/doc/step_list.html +166 -210
- data/doc/stepdefinition_list.html +36 -36
- data/doc/tag_list.html +12 -6
- data/doc/top-level-namespace.html +5 -14
- data/features/headers/header_options.feature +9 -9
- data/features/print_response.feature +0 -25
- data/features/step_definitions/header_steps.rb +8 -3
- data/features/step_definitions/rest_client_steps.rb +1 -6
- data/features/support/env.rb +0 -1
- data/features/support/mock_rest_service.rb +1 -5
- data/lib/rest_baby/version.rb +1 -1
- data/lib/rest_baby.rb +143 -88
- data/rest_baby.gemspec +2 -2
- metadata +28 -30
- data/doc/PinchRestService.html +0 -349
- data/features/support/pinch_rest_service.rb +0 -21
@@ -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.3
|
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>2<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_definition9-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/rest_client.html">features/rest_client.feature:7</a>
|
183
183
|
|
184
|
-
<a class="definition" style="clear: right;" href="features/
|
184
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:15</a>
|
185
185
|
|
186
|
-
<a class="definition" style="clear: right;" href="features/
|
186
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:26</a>
|
187
187
|
|
188
|
-
<a class="definition" style="clear: right;" href="features/
|
188
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:37</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:22</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:36</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:50</a>
|
197
197
|
|
198
|
-
<a class="definition" style="clear: right;" href="features/
|
198
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:8</a>
|
199
199
|
|
200
|
-
<a class="definition" style="clear: right;" href="features/
|
200
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:20</a>
|
201
201
|
|
202
|
-
<a class="definition" style="clear: right;" href="features/
|
202
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:34</a>
|
203
203
|
|
204
|
-
<a class="definition" style="clear: right;" href="features/
|
204
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:43</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_definition13-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>
|
@@ -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/rest_client.html">features/rest_client.feature:9</a>
|
287
287
|
|
288
|
-
<a class="definition" style="clear: right;" href="features/
|
288
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:20</a>
|
289
289
|
|
290
|
-
<a class="definition" style="clear: right;" href="features/
|
290
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:31</a>
|
291
291
|
|
292
|
-
<a class="definition" style="clear: right;" href="features/
|
292
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:39</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:27</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:41</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:52</a>
|
301
301
|
|
302
|
-
<a class="definition" style="clear: right;" href="features/
|
302
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:12</a>
|
303
303
|
|
304
|
-
<a class="definition" style="clear: right;" href="features/
|
304
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:28</a>
|
305
305
|
|
306
|
-
<a class="definition" style="clear: right;" href="features/
|
306
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:37</a>
|
307
307
|
|
308
|
-
<a class="definition" style="clear: right;" href="features/
|
308
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:46</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_definition6-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/
|
394
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:5</a>
|
395
395
|
|
396
|
-
<a class="definition" style="clear: right;" href="features/
|
396
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:13</a>
|
397
397
|
|
398
|
-
<a class="definition" style="clear: right;" href="features/
|
398
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:24</a>
|
399
399
|
|
400
|
-
<a class="definition" style="clear: right;" href="features/
|
400
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:35</a>
|
401
401
|
|
402
|
-
<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:5</a>
|
403
403
|
|
404
|
-
<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:17</a>
|
405
405
|
|
406
|
-
<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:31</a>
|
407
407
|
|
408
|
-
<a class="definition" style="clear: right;" href="features/
|
408
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:45</a>
|
409
409
|
|
410
|
-
<a class="definition" style="clear: right;" href="features/
|
410
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:5</a>
|
411
411
|
|
412
|
-
<a class="definition" style="clear: right;" href="features/
|
412
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:16</a>
|
413
413
|
|
414
|
-
<a class="definition" style="clear: right;" href="features/
|
414
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:32</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_definition10-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>
|
@@ -472,9 +472,9 @@
|
|
472
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 "(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>
|
473
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
474
|
<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
|
-
<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
|
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>
|
476
476
|
<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='ivar'>@response</span> <span class='op'>=</span> <span class='ivar'>@restbaby</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</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>
|
478
478
|
<span class='kw'>end</span>
|
479
479
|
<span class='kw'>end</span></pre>
|
480
480
|
</td>
|
@@ -494,23 +494,23 @@
|
|
494
494
|
<div class="step odd">
|
495
495
|
<div>
|
496
496
|
<span class="predicate">
|
497
|
-
|
497
|
+
When
|
498
498
|
</span>
|
499
499
|
<span class="defined">
|
500
500
|
I "<span class='match'>GET</span>" from the web service
|
501
501
|
</span>
|
502
502
|
</div>
|
503
503
|
|
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
|
+
|
504
508
|
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:11</a>
|
505
509
|
|
506
510
|
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:36</a>
|
507
511
|
|
508
512
|
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:45</a>
|
509
513
|
|
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
514
|
<div style="clear: both;"></div>
|
515
515
|
</div>
|
516
516
|
|
@@ -524,10 +524,10 @@
|
|
524
524
|
</span>
|
525
525
|
</div>
|
526
526
|
|
527
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:70</a>
|
528
|
-
|
529
527
|
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:38</a>
|
530
528
|
|
529
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:51</a>
|
530
|
+
|
531
531
|
<div style="clear: both;"></div>
|
532
532
|
</div>
|
533
533
|
|
@@ -545,7 +545,7 @@
|
|
545
545
|
<div class="transformer stepdefinition
|
546
546
|
|
547
547
|
">
|
548
|
-
<a name="
|
548
|
+
<a name="step_definition7-stepdefinition"></a>
|
549
549
|
<div class="title">
|
550
550
|
<span class="pre">Given</span>
|
551
551
|
<span class="name">/^I have "(GET|PUT|POST|DELETE)" service for "(.*?)"$/</span>
|
@@ -608,10 +608,6 @@
|
|
608
608
|
</span>
|
609
609
|
</div>
|
610
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
611
|
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:6</a>
|
616
612
|
|
617
613
|
<div style="clear: both;"></div>
|
@@ -662,6 +658,23 @@
|
|
662
658
|
<div style="clear: both;"></div>
|
663
659
|
</div>
|
664
660
|
|
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
|
+
|
665
678
|
|
666
679
|
</div>
|
667
680
|
|
@@ -676,7 +689,7 @@
|
|
676
689
|
<div class="transformer stepdefinition
|
677
690
|
|
678
691
|
">
|
679
|
-
<a name="
|
692
|
+
<a name="step_definition11-stepdefinition"></a>
|
680
693
|
<div class="title">
|
681
694
|
<span class="pre">When</span>
|
682
695
|
<span class="name">/^I "(PUT|POST)" to the web service with the following$/</span>
|
@@ -718,9 +731,9 @@
|
|
718
731
|
<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>
|
719
732
|
<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
733
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>put</span><span class='tstring_end'>'</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='
|
734
|
+
<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='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
722
735
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>post</span><span class='tstring_end'>'</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='
|
736
|
+
<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='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
724
737
|
<span class='kw'>end</span>
|
725
738
|
<span class='kw'>end</span></pre>
|
726
739
|
</td>
|
@@ -740,18 +753,16 @@
|
|
740
753
|
<div class="step odd">
|
741
754
|
<div>
|
742
755
|
<span class="predicate">
|
743
|
-
|
756
|
+
When
|
744
757
|
</span>
|
745
758
|
<span class="defined">
|
746
|
-
I "<span class='match'>
|
759
|
+
I "<span class='match'>PUT</span>" to the web service with the following
|
747
760
|
</span>
|
748
761
|
</div>
|
749
762
|
|
750
|
-
<a class="definition" style="clear: right;" href="features/
|
751
|
-
|
752
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:50</a>
|
763
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:16</a>
|
753
764
|
|
754
|
-
<a class="definition" style="clear: right;" href="features/
|
765
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:23</a>
|
755
766
|
|
756
767
|
<div style="clear: both;"></div>
|
757
768
|
</div>
|
@@ -762,13 +773,15 @@
|
|
762
773
|
When
|
763
774
|
</span>
|
764
775
|
<span class="defined">
|
765
|
-
I "<span class='match'>
|
776
|
+
I "<span class='match'>POST</span>" to the web service with the following
|
766
777
|
</span>
|
767
778
|
</div>
|
768
779
|
|
769
|
-
<a class="definition" style="clear: right;" href="features/
|
780
|
+
<a class="definition" style="clear: right;" href="features/rest_client.html">features/rest_client.feature:27</a>
|
770
781
|
|
771
|
-
<a class="definition" style="clear: right;" href="features/
|
782
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:37</a>
|
783
|
+
|
784
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:24</a>
|
772
785
|
|
773
786
|
<div style="clear: both;"></div>
|
774
787
|
</div>
|
@@ -787,7 +800,7 @@
|
|
787
800
|
<div class="transformer stepdefinition
|
788
801
|
|
789
802
|
">
|
790
|
-
<a name="
|
803
|
+
<a name="step_definition8-stepdefinition"></a>
|
791
804
|
<div class="title">
|
792
805
|
<span class="pre">Given</span>
|
793
806
|
<span class="name">/^I have "(GET|PUT|POST|DELETE)" service for "(.*?)" as follows$/</span>
|
@@ -865,7 +878,7 @@
|
|
865
878
|
</span>
|
866
879
|
</div>
|
867
880
|
|
868
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:
|
881
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:18</a>
|
869
882
|
|
870
883
|
<div style="clear: both;"></div>
|
871
884
|
</div>
|
@@ -880,7 +893,7 @@
|
|
880
893
|
</span>
|
881
894
|
</div>
|
882
895
|
|
883
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:
|
896
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:32</a>
|
884
897
|
|
885
898
|
<div style="clear: both;"></div>
|
886
899
|
</div>
|
@@ -895,7 +908,7 @@
|
|
895
908
|
</span>
|
896
909
|
</div>
|
897
910
|
|
898
|
-
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:
|
911
|
+
<a class="definition" style="clear: right;" href="features/print_response.html">features/print_response.feature:46</a>
|
899
912
|
|
900
913
|
<div style="clear: both;"></div>
|
901
914
|
</div>
|
@@ -914,12 +927,12 @@
|
|
914
927
|
<div class="transformer stepdefinition
|
915
928
|
|
916
929
|
">
|
917
|
-
<a name="
|
930
|
+
<a name="step_definition4-stepdefinition"></a>
|
918
931
|
<div class="title">
|
919
|
-
<span class="pre">
|
920
|
-
<span class="name">/^
|
932
|
+
<span class="pre">When</span>
|
933
|
+
<span class="name">/^I have the following headers?$/</span>
|
921
934
|
<div style="float: right;">
|
922
|
-
<a href="http://rubular.com/?regex=%2F%
|
935
|
+
<a href="http://rubular.com/?regex=%2F%5EI+have+the+following+headers%3F%24%2F" target="_blank">Rubular</a>
|
923
936
|
|
924
937
|
|
925
938
|
</div>
|
@@ -929,7 +942,7 @@
|
|
929
942
|
<div class="details">
|
930
943
|
|
931
944
|
<div class="meta" style="clear: right;">
|
932
|
-
<div class="file">features/step_definitions/
|
945
|
+
<div class="file">features/step_definitions/header_steps.rb:18</div>
|
933
946
|
</div>
|
934
947
|
|
935
948
|
<!-- Comments -->
|
@@ -943,13 +956,13 @@
|
|
943
956
|
<table class="source_code">
|
944
957
|
<tr>
|
945
958
|
<td>
|
946
|
-
<pre class="lines">
|
947
|
-
|
948
|
-
|
959
|
+
<pre class="lines">18
|
960
|
+
19
|
961
|
+
20</pre>
|
949
962
|
</td>
|
950
963
|
<td>
|
951
|
-
<pre class="code"><span class='const'>
|
952
|
-
|
964
|
+
<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>
|
965
|
+
<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>
|
953
966
|
<span class='kw'>end</span></pre>
|
954
967
|
</td>
|
955
968
|
</tr>
|
@@ -959,7 +972,7 @@
|
|
959
972
|
<!-- Matching Step Instances -->
|
960
973
|
|
961
974
|
<div class='showSteps'>
|
962
|
-
[<a href='#' class='toggleSteps' alt="
|
975
|
+
[<a href='#' class='toggleSteps' alt="2 steps">Hide 2 steps</a>]
|
963
976
|
</div>
|
964
977
|
|
965
978
|
<div class="steps">
|
@@ -968,20 +981,16 @@
|
|
968
981
|
<div class="step odd">
|
969
982
|
<div>
|
970
983
|
<span class="predicate">
|
971
|
-
|
984
|
+
When
|
972
985
|
</span>
|
973
986
|
<span class="defined">
|
974
|
-
|
987
|
+
I have the following header
|
975
988
|
</span>
|
976
989
|
</div>
|
977
990
|
|
978
|
-
<a class="definition" style="clear: right;" href="features/
|
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>
|
991
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:9</a>
|
983
992
|
|
984
|
-
<a class="definition" style="clear: right;" href="features/
|
993
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:21</a>
|
985
994
|
|
986
995
|
<div style="clear: both;"></div>
|
987
996
|
</div>
|
@@ -1000,7 +1009,7 @@
|
|
1000
1009
|
<div class="transformer stepdefinition
|
1001
1010
|
|
1002
1011
|
">
|
1003
|
-
<a name="
|
1012
|
+
<a name="step_definition5-stepdefinition"></a>
|
1004
1013
|
<div class="title">
|
1005
1014
|
<span class="pre">Given</span>
|
1006
1015
|
<span class="name">/^I have basic auth for user "(.*?)" and password "(.*?)"$/</span>
|
@@ -1015,7 +1024,7 @@
|
|
1015
1024
|
<div class="details">
|
1016
1025
|
|
1017
1026
|
<div class="meta" style="clear: right;">
|
1018
|
-
<div class="file">features/step_definitions/header_steps.rb:
|
1027
|
+
<div class="file">features/step_definitions/header_steps.rb:22</div>
|
1019
1028
|
</div>
|
1020
1029
|
|
1021
1030
|
<!-- Comments -->
|
@@ -1029,13 +1038,13 @@
|
|
1029
1038
|
<table class="source_code">
|
1030
1039
|
<tr>
|
1031
1040
|
<td>
|
1032
|
-
<pre class="lines">
|
1033
|
-
|
1034
|
-
|
1041
|
+
<pre class="lines">22
|
1042
|
+
23
|
1043
|
+
24</pre>
|
1035
1044
|
</td>
|
1036
1045
|
<td>
|
1037
1046
|
<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>
|
1038
|
-
|
1047
|
+
<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
1048
|
<span class='kw'>end</span></pre>
|
1040
1049
|
</td>
|
1041
1050
|
</tr>
|
@@ -1082,12 +1091,12 @@
|
|
1082
1091
|
<div class="transformer stepdefinition
|
1083
1092
|
|
1084
1093
|
">
|
1085
|
-
<a name="
|
1094
|
+
<a name="step_definition1-stepdefinition"></a>
|
1086
1095
|
<div class="title">
|
1087
|
-
<span class="pre">
|
1088
|
-
<span class="name">/^I have
|
1096
|
+
<span class="pre">Given</span>
|
1097
|
+
<span class="name">/^I have a secure web service$/</span>
|
1089
1098
|
<div style="float: right;">
|
1090
|
-
<a href="http://rubular.com/?regex=%2F%5EI+have+
|
1099
|
+
<a href="http://rubular.com/?regex=%2F%5EI+have+a+secure+web+service%24%2F" target="_blank">Rubular</a>
|
1091
1100
|
|
1092
1101
|
|
1093
1102
|
</div>
|
@@ -1097,7 +1106,7 @@
|
|
1097
1106
|
<div class="details">
|
1098
1107
|
|
1099
1108
|
<div class="meta" style="clear: right;">
|
1100
|
-
<div class="file">features/step_definitions/header_steps.rb:
|
1109
|
+
<div class="file">features/step_definitions/header_steps.rb:1</div>
|
1101
1110
|
</div>
|
1102
1111
|
|
1103
1112
|
<!-- Comments -->
|
@@ -1111,13 +1120,19 @@
|
|
1111
1120
|
<table class="source_code">
|
1112
1121
|
<tr>
|
1113
1122
|
<td>
|
1114
|
-
<pre class="lines">
|
1115
|
-
|
1116
|
-
|
1123
|
+
<pre class="lines">1
|
1124
|
+
2
|
1125
|
+
3
|
1126
|
+
4
|
1127
|
+
5
|
1128
|
+
6</pre>
|
1117
1129
|
</td>
|
1118
1130
|
<td>
|
1119
|
-
<pre class="code"><span class='const'>
|
1120
|
-
<span class='ivar'>@
|
1131
|
+
<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>
|
1132
|
+
<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>
|
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
1136
|
<span class='kw'>end</span></pre>
|
1122
1137
|
</td>
|
1123
1138
|
</tr>
|
@@ -1127,7 +1142,7 @@
|
|
1127
1142
|
<!-- Matching Step Instances -->
|
1128
1143
|
|
1129
1144
|
<div class='showSteps'>
|
1130
|
-
[<a href='#' class='toggleSteps' alt="
|
1145
|
+
[<a href='#' class='toggleSteps' alt="1 steps">Hide 1 steps</a>]
|
1131
1146
|
</div>
|
1132
1147
|
|
1133
1148
|
<div class="steps">
|
@@ -1136,16 +1151,14 @@
|
|
1136
1151
|
<div class="step odd">
|
1137
1152
|
<div>
|
1138
1153
|
<span class="predicate">
|
1139
|
-
|
1154
|
+
Given
|
1140
1155
|
</span>
|
1141
1156
|
<span class="defined">
|
1142
|
-
I have
|
1157
|
+
I have a secure web service
|
1143
1158
|
</span>
|
1144
1159
|
</div>
|
1145
1160
|
|
1146
|
-
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:
|
1147
|
-
|
1148
|
-
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:21</a>
|
1161
|
+
<a class="definition" style="clear: right;" href="features/headers/header_options.html">features/headers/header_options.feature:41</a>
|
1149
1162
|
|
1150
1163
|
<div style="clear: both;"></div>
|
1151
1164
|
</div>
|
@@ -1162,16 +1175,16 @@
|
|
1162
1175
|
|
1163
1176
|
|
1164
1177
|
<div class="transformer stepdefinition
|
1165
|
-
|
1178
|
+
nodefinitions
|
1166
1179
|
">
|
1167
|
-
<a name="
|
1180
|
+
<a name="step_definition3-stepdefinition"></a>
|
1168
1181
|
<div class="title">
|
1169
1182
|
<span class="pre">Given</span>
|
1170
|
-
<span class="name">/^I have "(GET|PUT|POST|DELETE)" service for "(
|
1183
|
+
<span class="name">/^I have "(GET|PUT|POST|DELETE)" service for "([^"]*) for user "([^"]*) and password "([^"]*)$/</span>
|
1171
1184
|
<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
|
1173
|
-
|
1185
|
+
<a href="http://rubular.com/?regex=%2F%5EI+have+%22%28GET%7CPUT%7CPOST%7CDELETE%29%22+service+for+%22%28%5B%5E%22%5D%2A%29+for+user+%22%28%5B%5E%22%5D%2A%29+and+password+%22%28%5B%5E%22%5D%2A%29%24%2F" target="_blank">Rubular</a>
|
1174
1186
|
|
1187
|
+
| UNUSED
|
1175
1188
|
</div>
|
1176
1189
|
<div style="clear: both;"></div>
|
1177
1190
|
</div>
|
@@ -1179,7 +1192,7 @@
|
|
1179
1192
|
<div class="details">
|
1180
1193
|
|
1181
1194
|
<div class="meta" style="clear: right;">
|
1182
|
-
<div class="file">features/step_definitions/header_steps.rb:
|
1195
|
+
<div class="file">features/step_definitions/header_steps.rb:13</div>
|
1183
1196
|
</div>
|
1184
1197
|
|
1185
1198
|
<!-- Comments -->
|
@@ -1193,15 +1206,15 @@
|
|
1193
1206
|
<table class="source_code">
|
1194
1207
|
<tr>
|
1195
1208
|
<td>
|
1196
|
-
<pre class="lines">
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1209
|
+
<pre class="lines">13
|
1210
|
+
14
|
1211
|
+
15
|
1212
|
+
16</pre>
|
1200
1213
|
</td>
|
1201
1214
|
<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 "(GET|PUT|POST|DELETE)" service for "(
|
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 "([^"]*) 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_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_user'>user</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='comma'>,</span> <span class='id identifier rubyid_table'>table</span><span class='op'>|</span>
|
1203
1216
|
<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>
|
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='comma'>,</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>
|
1205
1218
|
<span class='kw'>end</span></pre>
|
1206
1219
|
</td>
|
1207
1220
|
</tr>
|
@@ -1210,43 +1223,9 @@
|
|
1210
1223
|
|
1211
1224
|
<!-- Matching Step Instances -->
|
1212
1225
|
|
1213
|
-
<div class='showSteps'>
|
1214
|
-
[<a href='#' class='toggleSteps' alt="2 steps">Hide 2 steps</a>]
|
1215
|
-
</div>
|
1216
|
-
|
1217
1226
|
<div class="steps">
|
1218
1227
|
|
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
|
-
|
1228
|
+
<div class="undefined">No steps were found to match this step definition.</div>
|
1250
1229
|
|
1251
1230
|
</div>
|
1252
1231
|
|
@@ -1259,16 +1238,16 @@
|
|
1259
1238
|
|
1260
1239
|
|
1261
1240
|
<div class="transformer stepdefinition
|
1262
|
-
|
1241
|
+
nodefinitions
|
1263
1242
|
">
|
1264
|
-
<a name="
|
1243
|
+
<a name="step_definition12-stepdefinition"></a>
|
1265
1244
|
<div class="title">
|
1266
|
-
<span class="pre">
|
1267
|
-
<span class="name">/^I
|
1245
|
+
<span class="pre">When</span>
|
1246
|
+
<span class="name">/^I pause$/</span>
|
1268
1247
|
<div style="float: right;">
|
1269
|
-
<a href="http://rubular.com/?regex=%2F%5EI+
|
1270
|
-
|
1248
|
+
<a href="http://rubular.com/?regex=%2F%5EI+pause%24%2F" target="_blank">Rubular</a>
|
1271
1249
|
|
1250
|
+
| UNUSED
|
1272
1251
|
</div>
|
1273
1252
|
<div style="clear: both;"></div>
|
1274
1253
|
</div>
|
@@ -1276,7 +1255,7 @@
|
|
1276
1255
|
<div class="details">
|
1277
1256
|
|
1278
1257
|
<div class="meta" style="clear: right;">
|
1279
|
-
<div class="file">features/step_definitions/
|
1258
|
+
<div class="file">features/step_definitions/rest_client_steps.rb:42</div>
|
1280
1259
|
</div>
|
1281
1260
|
|
1282
1261
|
<!-- Comments -->
|
@@ -1290,19 +1269,13 @@
|
|
1290
1269
|
<table class="source_code">
|
1291
1270
|
<tr>
|
1292
1271
|
<td>
|
1293
|
-
<pre class="lines">
|
1294
|
-
|
1295
|
-
|
1296
|
-
4
|
1297
|
-
5
|
1298
|
-
6</pre>
|
1272
|
+
<pre class="lines">42
|
1273
|
+
43
|
1274
|
+
44</pre>
|
1299
1275
|
</td>
|
1300
1276
|
<td>
|
1301
|
-
<pre class="code"><span class='const'>
|
1302
|
-
|
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>
|
1277
|
+
<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>
|
1278
|
+
<span class='id identifier rubyid_pause'>pause</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
1306
1279
|
<span class='kw'>end</span></pre>
|
1307
1280
|
</td>
|
1308
1281
|
</tr>
|
@@ -1311,28 +1284,9 @@
|
|
1311
1284
|
|
1312
1285
|
<!-- Matching Step Instances -->
|
1313
1286
|
|
1314
|
-
<div class='showSteps'>
|
1315
|
-
[<a href='#' class='toggleSteps' alt="1 steps">Hide 1 steps</a>]
|
1316
|
-
</div>
|
1317
|
-
|
1318
1287
|
<div class="steps">
|
1319
1288
|
|
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
|
-
|
1289
|
+
<div class="undefined">No steps were found to match this step definition.</div>
|
1336
1290
|
|
1337
1291
|
</div>
|
1338
1292
|
|
@@ -1347,12 +1301,12 @@
|
|
1347
1301
|
<div class="transformer stepdefinition
|
1348
1302
|
nodefinitions
|
1349
1303
|
">
|
1350
|
-
<a name="
|
1304
|
+
<a name="step_definition2-stepdefinition"></a>
|
1351
1305
|
<div class="title">
|
1352
|
-
<span class="pre">
|
1353
|
-
<span class="name">/^I
|
1306
|
+
<span class="pre">Given</span>
|
1307
|
+
<span class="name">/^I have "(GET|PUT|POST|DELETE)" service for "([^"]*) with the following headers$/</span>
|
1354
1308
|
<div style="float: right;">
|
1355
|
-
<a href="http://rubular.com/?regex=%2F%5EI+
|
1309
|
+
<a href="http://rubular.com/?regex=%2F%5EI+have+%22%28GET%7CPUT%7CPOST%7CDELETE%29%22+service+for+%22%28%5B%5E%22%5D%2A%29+with+the+following+headers%24%2F" target="_blank">Rubular</a>
|
1356
1310
|
|
1357
1311
|
| UNUSED
|
1358
1312
|
</div>
|
@@ -1362,7 +1316,7 @@
|
|
1362
1316
|
<div class="details">
|
1363
1317
|
|
1364
1318
|
<div class="meta" style="clear: right;">
|
1365
|
-
<div class="file">features/step_definitions/
|
1319
|
+
<div class="file">features/step_definitions/header_steps.rb:8</div>
|
1366
1320
|
</div>
|
1367
1321
|
|
1368
1322
|
<!-- Comments -->
|
@@ -1376,15 +1330,15 @@
|
|
1376
1330
|
<table class="source_code">
|
1377
1331
|
<tr>
|
1378
1332
|
<td>
|
1379
|
-
<pre class="lines">
|
1380
|
-
|
1381
|
-
|
1382
|
-
|
1333
|
+
<pre class="lines">8
|
1334
|
+
9
|
1335
|
+
10
|
1336
|
+
11</pre>
|
1383
1337
|
</td>
|
1384
1338
|
<td>
|
1385
|
-
<pre class="code"><span class='const'>
|
1386
|
-
<span class='
|
1387
|
-
<span class='id identifier
|
1339
|
+
<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>
|
1340
|
+
<span class='ivar'>@path</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span>
|
1341
|
+
<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>
|
1388
1342
|
<span class='kw'>end</span></pre>
|
1389
1343
|
</td>
|
1390
1344
|
</tr>
|
@@ -1410,12 +1364,12 @@
|
|
1410
1364
|
<div class="transformer stepdefinition
|
1411
1365
|
nodefinitions
|
1412
1366
|
">
|
1413
|
-
<a name="
|
1367
|
+
<a name="step_definition14-stepdefinition"></a>
|
1414
1368
|
<div class="title">
|
1415
|
-
<span class="pre">
|
1416
|
-
<span class="name">/^I
|
1369
|
+
<span class="pre">Then</span>
|
1370
|
+
<span class="name">/^I receive the following$/</span>
|
1417
1371
|
<div style="float: right;">
|
1418
|
-
<a href="http://rubular.com/?regex=%2F%5EI+
|
1372
|
+
<a href="http://rubular.com/?regex=%2F%5EI+receive+the+following%24%2F" target="_blank">Rubular</a>
|
1419
1373
|
|
1420
1374
|
| UNUSED
|
1421
1375
|
</div>
|
@@ -1425,7 +1379,7 @@
|
|
1425
1379
|
<div class="details">
|
1426
1380
|
|
1427
1381
|
<div class="meta" style="clear: right;">
|
1428
|
-
<div class="file">features/step_definitions/rest_client_steps.rb:
|
1382
|
+
<div class="file">features/step_definitions/rest_client_steps.rb:51</div>
|
1429
1383
|
</div>
|
1430
1384
|
|
1431
1385
|
<!-- Comments -->
|
@@ -1439,13 +1393,15 @@
|
|
1439
1393
|
<table class="source_code">
|
1440
1394
|
<tr>
|
1441
1395
|
<td>
|
1442
|
-
<pre class="lines">
|
1443
|
-
|
1444
|
-
|
1396
|
+
<pre class="lines">51
|
1397
|
+
52
|
1398
|
+
53
|
1399
|
+
54</pre>
|
1445
1400
|
</td>
|
1446
1401
|
<td>
|
1447
|
-
<pre class="code"><span class='const'>
|
1448
|
-
|
1402
|
+
<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>
|
1403
|
+
<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>
|
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
1405
|
<span class='kw'>end</span></pre>
|
1450
1406
|
</td>
|
1451
1407
|
</tr>
|
@@ -1490,18 +1446,46 @@
|
|
1490
1446
|
<div class="transformer">
|
1491
1447
|
<div class="steps">
|
1492
1448
|
|
1493
|
-
|
1494
|
-
|
1449
|
+
|
1450
|
+
<div class="step odd">
|
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>
|
1495
1463
|
</div>
|
1496
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>
|
1478
|
+
</div>
|
1479
|
+
|
1480
|
+
|
1497
1481
|
</div>
|
1498
1482
|
</div>
|
1499
1483
|
</div>
|
1500
1484
|
|
1501
1485
|
<div id="footer">
|
1502
|
-
Generated on
|
1486
|
+
Generated on Thu Feb 13 23:38:40 2014 by
|
1503
1487
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1504
|
-
0.8.7 (ruby-2.0.0).
|
1488
|
+
0.8.7.3 (ruby-2.0.0).
|
1505
1489
|
</div>
|
1506
1490
|
|
1507
1491
|
</body>
|