cucumber 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,7 @@ rvm:
8
8
  branches:
9
9
  only:
10
10
  - master
11
+ - v1.3.x-bugfix
11
12
 
12
13
  notifications:
13
14
  email:
data/History.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [1.3.x
2
+ latest](https://github.com/cucumber/cucumber/compare/v1.3.2...v1.3.x-bugfix)
3
+
4
+ ## [1.3.1](https://github.com/cucumber/cucumber/compare/v1.3.1...v1.3.2)
5
+
6
+ ### Bugfixes
7
+ * Fixed ugly NoMethodError when a Scenario Outline has no Examples
8
+ ([#438](https://github.com/cucumber/cucumber/issues/438) Steve Tooke)
9
+
1
10
  ## [1.3.1](https://github.com/cucumber/cucumber/compare/v1.3.0...v1.3.1)
2
11
 
3
12
  ### Bugfixes
@@ -28,33 +28,6 @@
28
28
  "flags": "",
29
29
  "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:19",
30
30
  "steps": [
31
- {
32
- "name": "a file named \"cucumber.yml\" with:",
33
- "args": [
34
- {
35
- "offset": 14,
36
- "val": "cucumber.yml"
37
- }
38
- ]
39
- },
40
- {
41
- "name": "a file named \"features/action.feature\" with:",
42
- "args": [
43
- {
44
- "offset": 14,
45
- "val": "features/action.feature"
46
- }
47
- ]
48
- },
49
- {
50
- "name": "a file named \"features/doc_string.feature\" with:",
51
- "args": [
52
- {
53
- "offset": 14,
54
- "val": "features/doc_string.feature"
55
- }
56
- ]
57
- },
58
31
  {
59
32
  "name": "a file named \"features/f.feature\" with:",
60
33
  "args": [
@@ -64,60 +37,6 @@
64
37
  }
65
38
  ]
66
39
  },
67
- {
68
- "name": "a file named \"features/foo.feature\" with:",
69
- "args": [
70
- {
71
- "offset": 14,
72
- "val": "features/foo.feature"
73
- }
74
- ]
75
- },
76
- {
77
- "name": "a file named \"features/only_background_and_hooks.feature\" with:",
78
- "args": [
79
- {
80
- "offset": 14,
81
- "val": "features/only_background_and_hooks.feature"
82
- }
83
- ]
84
- },
85
- {
86
- "name": "a file named \"features/only_background_and_hooks_steps.rb\" with:",
87
- "args": [
88
- {
89
- "offset": 14,
90
- "val": "features/only_background_and_hooks_steps.rb"
91
- }
92
- ]
93
- },
94
- {
95
- "name": "a file named \"features/step_definitions/assert_steps.rb\" with:",
96
- "args": [
97
- {
98
- "offset": 14,
99
- "val": "features/step_definitions/assert_steps.rb"
100
- }
101
- ]
102
- },
103
- {
104
- "name": "a file named \"features/step_definitions/doc_string_steps.rb\" with:",
105
- "args": [
106
- {
107
- "offset": 14,
108
- "val": "features/step_definitions/doc_string_steps.rb"
109
- }
110
- ]
111
- },
112
- {
113
- "name": "a file named \"features/step_definitions/multiline_steps.rb\" with:",
114
- "args": [
115
- {
116
- "offset": 14,
117
- "val": "features/step_definitions/multiline_steps.rb"
118
- }
119
- ]
120
- },
121
40
  {
122
41
  "name": "a file named \"features/step_definitions/steps.rb\" with:",
123
42
  "args": [
@@ -126,69 +45,6 @@
126
45
  "val": "features/step_definitions/steps.rb"
127
46
  }
128
47
  ]
129
- },
130
- {
131
- "name": "a file named \"features/support/env.rb\" with:",
132
- "args": [
133
- {
134
- "offset": 14,
135
- "val": "features/support/env.rb"
136
- }
137
- ]
138
- },
139
- {
140
- "name": "a file named \"features/support/hook.rb\" with:",
141
- "args": [
142
- {
143
- "offset": 14,
144
- "val": "features/support/hook.rb"
145
- }
146
- ]
147
- },
148
- {
149
- "name": "a file named \"features/support/jb/formatter.rb\" with:",
150
- "args": [
151
- {
152
- "offset": 14,
153
- "val": "features/support/jb/formatter.rb"
154
- }
155
- ]
156
- },
157
- {
158
- "name": "a file named \"features/support/ze/formator.rb\" with:",
159
- "args": [
160
- {
161
- "offset": 14,
162
- "val": "features/support/ze/formator.rb"
163
- }
164
- ]
165
- },
166
- {
167
- "name": "a file named \"features/test.feature\" with:",
168
- "args": [
169
- {
170
- "offset": 14,
171
- "val": "features/test.feature"
172
- }
173
- ]
174
- },
175
- {
176
- "name": "a file named \"lib/something.rb\" with:",
177
- "args": [
178
- {
179
- "offset": 14,
180
- "val": "lib/something.rb"
181
- }
182
- ]
183
- },
184
- {
185
- "name": "a file named \"should_not_load.rb\" with:",
186
- "args": [
187
- {
188
- "offset": 14,
189
- "val": "should_not_load.rb"
190
- }
191
- ]
192
48
  }
193
49
  ]
194
50
  },
@@ -270,362 +126,11 @@
270
126
  "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:60",
271
127
  "steps": [
272
128
  {
273
- "name": "I run `bundle exec rake fail`",
274
- "args": [
275
- {
276
- "offset": 7,
277
- "val": "bundle exec rake fail"
278
- }
279
- ]
280
- },
281
- {
282
- "name": "I run `bundle exec rake pass`",
283
- "args": [
284
- {
285
- "offset": 7,
286
- "val": "bundle exec rake pass"
287
- }
288
- ]
289
- },
290
- {
291
- "name": "I run `cucumber --format json features/doc_string.feature`",
292
- "args": [
293
- {
294
- "offset": 7,
295
- "val": "cucumber --format json features/doc_string.feature"
296
- }
297
- ]
298
- },
299
- {
300
- "name": "I run `cucumber --format json features/one_passing_one_failing.feature`",
301
- "args": [
302
- {
303
- "offset": 7,
304
- "val": "cucumber --format json features/one_passing_one_failing.feature"
305
- }
306
- ]
307
- },
308
- {
309
- "name": "I run `cucumber --format json_pretty features/one_passing_one_failing.feature`",
310
- "args": [
311
- {
312
- "offset": 7,
313
- "val": "cucumber --format json_pretty features/one_passing_one_failing.feature"
314
- }
315
- ]
316
- },
317
- {
318
- "name": "I run `cucumber --profile default --format html`",
319
- "args": [
320
- {
321
- "offset": 7,
322
- "val": "cucumber --profile default --format html"
323
- }
324
- ]
325
- },
326
- {
327
- "name": "I run `cucumber --profile default --format pretty`",
328
- "args": [
329
- {
330
- "offset": 7,
331
- "val": "cucumber --profile default --format pretty"
332
- }
333
- ]
334
- },
335
- {
336
- "name": "I run `cucumber --profile default --format progress`",
337
- "args": [
338
- {
339
- "offset": 7,
340
- "val": "cucumber --profile default --format progress"
341
- }
342
- ]
343
- },
344
- {
345
- "name": "I run `cucumber -b --format json features/embed.feature`",
346
- "args": [
347
- {
348
- "offset": 7,
349
- "val": "cucumber -b --format json features/embed.feature"
350
- }
351
- ]
352
- },
353
- {
354
- "name": "I run `cucumber -f stepdefs --dry-run`",
355
- "args": [
356
- {
357
- "offset": 7,
358
- "val": "cucumber -f stepdefs --dry-run"
359
- }
360
- ]
361
- },
362
- {
363
- "name": "I run `cucumber -f usage --dry-run`",
364
- "args": [
365
- {
366
- "offset": 7,
367
- "val": "cucumber -f usage --dry-run"
368
- }
369
- ]
370
- },
371
- {
372
- "name": "I run `cucumber -q -t @one -t @three features/tagulicious.feature`",
373
- "args": [
374
- {
375
- "offset": 7,
376
- "val": "cucumber -q -t @one -t @three features/tagulicious.feature"
377
- }
378
- ]
379
- },
380
- {
381
- "name": "I run `cucumber -q -t @one,@three features/tagulicious.feature`",
382
- "args": [
383
- {
384
- "offset": 7,
385
- "val": "cucumber -q -t @one,@three features/tagulicious.feature"
386
- }
387
- ]
388
- },
389
- {
390
- "name": "I run `cucumber -q features/background_tagged_before_on_outline.feature`",
391
- "args": [
392
- {
393
- "offset": 7,
394
- "val": "cucumber -q features/background_tagged_before_on_outline.feature"
395
- }
396
- ]
397
- },
398
- {
399
- "name": "I run `cucumber -q features/failing_background.feature`",
400
- "args": [
401
- {
402
- "offset": 7,
403
- "val": "cucumber -q features/failing_background.feature"
404
- }
405
- ]
406
- },
407
- {
408
- "name": "I run `cucumber -q features/failing_background_after_success.feature`",
409
- "args": [
410
- {
411
- "offset": 7,
412
- "val": "cucumber -q features/failing_background_after_success.feature"
413
- }
414
- ]
415
- },
416
- {
417
- "name": "I run `cucumber -q features/multiline_args_background.feature`",
418
- "args": [
419
- {
420
- "offset": 7,
421
- "val": "cucumber -q features/multiline_args_background.feature"
422
- }
423
- ]
424
- },
425
- {
426
- "name": "I run `cucumber -q features/passing_background.feature:9`",
427
- "args": [
428
- {
429
- "offset": 7,
430
- "val": "cucumber -q features/passing_background.feature:9"
431
- }
432
- ]
433
- },
434
- {
435
- "name": "I run `cucumber -q features/passing_background.feature`",
436
- "args": [
437
- {
438
- "offset": 7,
439
- "val": "cucumber -q features/passing_background.feature"
440
- }
441
- ]
442
- },
443
- {
444
- "name": "I run `cucumber -q features/pending_background.feature`",
445
- "args": [
446
- {
447
- "offset": 7,
448
- "val": "cucumber -q features/pending_background.feature"
449
- }
450
- ]
451
- },
452
- {
453
- "name": "I run `cucumber -q features/scenario_outline_failing_background.feature`",
454
- "args": [
455
- {
456
- "offset": 7,
457
- "val": "cucumber -q features/scenario_outline_failing_background.feature"
458
- }
459
- ]
460
- },
461
- {
462
- "name": "I run `cucumber -q features/scenario_outline_passing_background.feature`",
463
- "args": [
464
- {
465
- "offset": 7,
466
- "val": "cucumber -q features/scenario_outline_passing_background.feature"
467
- }
468
- ]
469
- },
470
- {
471
- "name": "I run `cucumber <file> --format html <flag>`",
472
- "args": [
473
- {
474
- "offset": 7,
475
- "val": "cucumber <file> --format html <flag>"
476
- }
477
- ]
478
- },
479
- {
480
- "name": "I run `cucumber features/f.feature --format Jb::Formatter`",
481
- "args": [
482
- {
483
- "offset": 7,
484
- "val": "cucumber features/f.feature --format Jb::Formatter"
485
- }
486
- ]
487
- },
488
- {
489
- "name": "I run `cucumber features/f.feature --format Ze::Formator`",
490
- "args": [
491
- {
492
- "offset": 7,
493
- "val": "cucumber features/f.feature --format Ze::Formator"
494
- }
495
- ]
496
- },
497
- {
498
- "name": "I run `cucumber features/f.feature --format debug --expand`",
499
- "args": [
500
- {
501
- "offset": 7,
502
- "val": "cucumber features/f.feature --format debug --expand"
503
- }
504
- ]
505
- },
506
- {
507
- "name": "I run `cucumber features/f.feature --format debug`",
508
- "args": [
509
- {
510
- "offset": 7,
511
- "val": "cucumber features/f.feature --format debug"
512
- }
513
- ]
514
- },
515
- {
516
- "name": "I run `cucumber features/f.feature:2`",
517
- "args": [
518
- {
519
- "offset": 7,
520
- "val": "cucumber features/f.feature:2"
521
- }
522
- ]
523
- },
524
- {
525
- "name": "I run `cucumber features/f.feature:6`",
526
- "args": [
527
- {
528
- "offset": 7,
529
- "val": "cucumber features/f.feature:6"
530
- }
531
- ]
532
- },
533
- {
534
- "name": "I run `cucumber features/foo.feature`",
535
- "args": [
536
- {
537
- "offset": 7,
538
- "val": "cucumber features/foo.feature"
539
- }
540
- ]
541
- },
542
- {
543
- "name": "I run `cucumber features/one_passing_one_failing.feature -r features -f rerun`",
544
- "args": [
545
- {
546
- "offset": 7,
547
- "val": "cucumber features/one_passing_one_failing.feature -r features -f rerun"
548
- }
549
- ]
550
- },
551
- {
552
- "name": "I run `cucumber features/only_background_and_hooks.feature`",
553
- "args": [
554
- {
555
- "offset": 7,
556
- "val": "cucumber features/only_background_and_hooks.feature"
557
- }
558
- ]
559
- },
560
- {
561
- "name": "I run `cucumber features/sample.feature --tags ~@wip`",
562
- "args": [
563
- {
564
- "offset": 7,
565
- "val": "cucumber features/sample.feature --tags ~@wip"
566
- }
567
- ]
568
- },
569
- {
570
- "name": "I run `cucumber features/sample.feature -r features --tags ~@wip`",
571
- "args": [
572
- {
573
- "offset": 7,
574
- "val": "cucumber features/sample.feature -r features --tags ~@wip"
575
- }
576
- ]
577
- },
578
- {
579
- "name": "I run `cucumber features/scenario_outline_with_undefined_steps.feature --format html --expand `",
580
- "args": [
581
- {
582
- "offset": 7,
583
- "val": "cucumber features/scenario_outline_with_undefined_steps.feature --format html --expand "
584
- }
585
- ]
586
- },
587
- {
588
- "name": "I run `cucumber features/scenario_outline_with_undefined_steps.feature --format pretty --expand `",
589
- "args": [
590
- {
591
- "offset": 7,
592
- "val": "cucumber features/scenario_outline_with_undefined_steps.feature --format pretty --expand "
593
- }
594
- ]
595
- },
596
- {
597
- "name": "I run `cucumber features/scenario_outline_with_undefined_steps.feature --format progress --expand `",
598
- "args": [
599
- {
600
- "offset": 7,
601
- "val": "cucumber features/scenario_outline_with_undefined_steps.feature --format progress --expand "
602
- }
603
- ]
604
- },
605
- {
606
- "name": "I run `cucumber features/test.feature:5 -f progress`",
129
+ "name": "I run `cucumber features/f.feature`",
607
130
  "args": [
608
131
  {
609
132
  "offset": 7,
610
- "val": "cucumber features/test.feature:5 -f progress"
611
- }
612
- ]
613
- },
614
- {
615
- "name": "I run `cucumber features/test.feature:8 -f progress`",
616
- "args": [
617
- {
618
- "offset": 7,
619
- "val": "cucumber features/test.feature:8 -f progress"
620
- }
621
- ]
622
- },
623
- {
624
- "name": "I run `cucumber`",
625
- "args": [
626
- {
627
- "offset": 7,
628
- "val": "cucumber"
133
+ "val": "cucumber features/f.feature"
629
134
  }
630
135
  ]
631
136
  }
@@ -708,15 +213,7 @@
708
213
  "flags": "",
709
214
  "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:109",
710
215
  "steps": [
711
- {
712
- "name": "the output should not contain \"rake aborted!\"",
713
- "args": [
714
- {
715
- "offset": 31,
716
- "val": "rake aborted!"
717
- }
718
- ]
719
- }
216
+
720
217
  ]
721
218
  },
722
219
  {
@@ -724,12 +221,7 @@
724
221
  "flags": "",
725
222
  "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:113",
726
223
  "steps": [
727
- {
728
- "name": "the output should contain:",
729
- "args": [
730
224
 
731
- ]
732
- }
733
225
  ]
734
226
  },
735
227
  {
@@ -737,12 +229,7 @@
737
229
  "flags": "",
738
230
  "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:117",
739
231
  "steps": [
740
- {
741
- "name": "the output should not contain:",
742
- "args": [
743
232
 
744
- ]
745
- }
746
233
  ]
747
234
  },
748
235
  {
@@ -762,7 +249,7 @@
762
249
  ]
763
250
  },
764
251
  {
765
- "source": "^the output should match /([^/]*)/$",
252
+ "source": "^the output should match \\/([^\\/]*)\\/$",
766
253
  "flags": "",
767
254
  "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:137",
768
255
  "steps": [
@@ -778,7 +265,7 @@
778
265
  ]
779
266
  },
780
267
  {
781
- "source": "^the output should not match /([^/]*)/$",
268
+ "source": "^the output should not match \\/([^\\/]*)\\/$",
782
269
  "flags": "",
783
270
  "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:146",
784
271
  "steps": [
@@ -798,15 +285,7 @@
798
285
  "flags": "",
799
286
  "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:154",
800
287
  "steps": [
801
- {
802
- "name": "the exit status should be 0",
803
- "args": [
804
- {
805
- "offset": 26,
806
- "val": "0"
807
- }
808
- ]
809
- }
288
+
810
289
  ]
811
290
  },
812
291
  {
@@ -814,15 +293,7 @@
814
293
  "flags": "",
815
294
  "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:158",
816
295
  "steps": [
817
- {
818
- "name": "the exit status should not be 0",
819
- "args": [
820
- {
821
- "offset": 30,
822
- "val": "0"
823
- }
824
- ]
825
- }
296
+
826
297
  ]
827
298
  },
828
299
  {
@@ -838,15 +309,6 @@
838
309
  "val": "fail"
839
310
  }
840
311
  ]
841
- },
842
- {
843
- "name": "it should pass with:",
844
- "args": [
845
- {
846
- "offset": 10,
847
- "val": "pass"
848
- }
849
- ]
850
312
  }
851
313
  ]
852
314
  },
@@ -855,24 +317,7 @@
855
317
  "flags": "",
856
318
  "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:166",
857
319
  "steps": [
858
- {
859
- "name": "it should fail with exactly:",
860
- "args": [
861
- {
862
- "offset": 10,
863
- "val": "fail"
864
- }
865
- ]
866
- },
867
- {
868
- "name": "it should pass with exactly:",
869
- "args": [
870
- {
871
- "offset": 10,
872
- "val": "pass"
873
- }
874
- ]
875
- }
320
+
876
321
  ]
877
322
  },
878
323
  {
@@ -1084,7 +529,7 @@
1084
529
  ]
1085
530
  },
1086
531
  {
1087
- "source": "^the file \"([^\"]*)\" should match /([^/]*)/$",
532
+ "source": "^the file \"([^\"]*)\" should match \\/([^\\/]*)\\/$",
1088
533
  "flags": "",
1089
534
  "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:308",
1090
535
  "steps": [
@@ -1092,7 +537,7 @@
1092
537
  ]
1093
538
  },
1094
539
  {
1095
- "source": "^the file \"([^\"]*)\" should not match /([^/]*)/$",
540
+ "source": "^the file \"([^\"]*)\" should not match \\/([^\\/]*)\\/$",
1096
541
  "flags": "",
1097
542
  "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:312",
1098
543
  "steps": [
@@ -1104,12 +549,7 @@
1104
549
  "flags": "",
1105
550
  "file_colon_line": "features/step_definitions/cucumber_steps.rb:1",
1106
551
  "steps": [
1107
- {
1108
- "name": "it should pass",
1109
- "args": [
1110
552
 
1111
- ]
1112
- }
1113
553
  ]
1114
554
  },
1115
555
  {
@@ -1117,24 +557,7 @@
1117
557
  "flags": "",
1118
558
  "file_colon_line": "features/step_definitions/cucumber_steps.rb:5",
1119
559
  "steps": [
1120
- {
1121
- "name": "it should fail with JSON:",
1122
- "args": [
1123
- {
1124
- "offset": 10,
1125
- "val": "fail"
1126
- }
1127
- ]
1128
- },
1129
- {
1130
- "name": "it should pass with JSON:",
1131
- "args": [
1132
- {
1133
- "offset": 10,
1134
- "val": "pass"
1135
- }
1136
- ]
1137
- }
560
+
1138
561
  ]
1139
562
  },
1140
563
  {
@@ -1142,12 +565,7 @@
1142
565
  "flags": "",
1143
566
  "file_colon_line": "features/step_definitions/cucumber_steps.rb:30",
1144
567
  "steps": [
1145
- {
1146
- "name": "a directory without standard Cucumber project directory structure",
1147
- "args": [
1148
568
 
1149
- ]
1150
- }
1151
569
  ]
1152
570
  },
1153
571
  {
@@ -1155,12 +573,7 @@
1155
573
  "flags": "",
1156
574
  "file_colon_line": "features/step_definitions/cucumber_steps.rb:36",
1157
575
  "steps": [
1158
- {
1159
- "name": "a scenario with a step that looks like this:",
1160
- "args": [
1161
576
 
1162
- ]
1163
- }
1164
577
  ]
1165
578
  },
1166
579
  {
@@ -1176,12 +589,7 @@
1176
589
  "flags": "",
1177
590
  "file_colon_line": "features/step_definitions/cucumber_steps.rb:48",
1178
591
  "steps": [
1179
- {
1180
- "name": "a step definition that looks like this:",
1181
- "args": [
1182
592
 
1183
- ]
1184
- }
1185
593
  ]
1186
594
  },
1187
595
  {
@@ -1189,15 +597,7 @@
1189
597
  "flags": "",
1190
598
  "file_colon_line": "features/step_definitions/cucumber_steps.rb:52",
1191
599
  "steps": [
1192
- {
1193
- "name": "I run the feature with the progress formatter",
1194
- "args": [
1195
- {
1196
- "offset": 27,
1197
- "val": "progress"
1198
- }
1199
- ]
1200
- }
600
+
1201
601
  ]
1202
602
  },
1203
603
  {
@@ -1205,12 +605,7 @@
1205
605
  "flags": "",
1206
606
  "file_colon_line": "features/step_definitions/drb_steps.rb:1",
1207
607
  "steps": [
1208
- {
1209
- "name": "I am running spork in the background",
1210
- "args": [
1211
608
 
1212
- ]
1213
- }
1214
609
  ]
1215
610
  },
1216
611
  {
@@ -1218,15 +613,7 @@
1218
613
  "flags": "",
1219
614
  "file_colon_line": "features/step_definitions/iso-8859-1_steps.rb:6",
1220
615
  "steps": [
1221
- {
1222
- "name": "jeg drikker en \"øl\"",
1223
- "args": [
1224
- {
1225
- "offset": 16,
1226
- "val": "øl"
1227
- }
1228
- ]
1229
- }
616
+
1230
617
  ]
1231
618
  },
1232
619
  {
@@ -1234,15 +621,7 @@
1234
621
  "flags": "",
1235
622
  "file_colon_line": "features/step_definitions/iso-8859-1_steps.rb:10",
1236
623
  "steps": [
1237
- {
1238
- "name": "skal de andre si \"skål\"",
1239
- "args": [
1240
- {
1241
- "offset": 18,
1242
- "val": "skål"
1243
- }
1244
- ]
1245
- }
624
+
1246
625
  ]
1247
626
  }
1248
627
  ]
@@ -0,0 +1,18 @@
1
+ Feature: Scenario Outlines
2
+
3
+ Scenario: Scenario Outline requires Example Section
4
+ Given a file named "features/f.feature" with:
5
+ """
6
+ Feature:
7
+ Scenario Outline:
8
+ Given I have <opening balance> cucumbers
9
+ """
10
+ And a file named "features/step_definitions/steps.rb" with:
11
+ """
12
+ Given /^I have (\d+) cucumbers$/ do; end
13
+ """
14
+ When I run `cucumber features/f.feature`
15
+ Then it should fail with:
16
+ """
17
+ Missing Example Section for Scenario Outline at features/f.feature:2 (Cucumber::Ast::ScenarioOutline::MissingExamples)
18
+ """
@@ -34,6 +34,8 @@ module Cucumber
34
34
 
35
35
  def accept(visitor)
36
36
  return if Cucumber.wants_to_quit
37
+ raise_missing_examples_error unless @example_sections
38
+
37
39
  visitor.visit_comment(@comment) unless @comment.empty?
38
40
  visitor.visit_tags(@tags)
39
41
  visitor.visit_scenario_name(@keyword, name, file_colon_line, source_indent(first_line_length))
@@ -133,6 +135,12 @@ module Cucumber
133
135
  def steps
134
136
  @steps ||= StepCollection.new(@raw_steps)
135
137
  end
138
+
139
+ def raise_missing_examples_error
140
+ raise MissingExamples, "Missing Example Section for Scenario Outline at #{@location}"
141
+ end
142
+
143
+ MissingExamples = Class.new(StandardError)
136
144
  end
137
145
  end
138
146
  end
@@ -4,7 +4,7 @@ require 'rbconfig'
4
4
 
5
5
  module Cucumber
6
6
  unless defined?(Cucumber::VERSION)
7
- VERSION = '1.3.1'
7
+ VERSION = '1.3.2'
8
8
  BINARY = File.expand_path(File.dirname(__FILE__) + '/../../bin/cucumber')
9
9
  LIBDIR = File.expand_path(File.dirname(__FILE__) + '/../../lib')
10
10
  JRUBY = defined?(JRUBY_VERSION)
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Aslak Hellesøy
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-04-21 00:00:00.000000000 Z
12
+ date: 2013-05-22 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: builder
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ! '>='
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ! '>='
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: diff-lcs
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ! '>='
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ! '>='
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: gherkin
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ~>
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ~>
53
60
  - !ruby/object:Gem::Version
@@ -55,6 +62,7 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: multi_json
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ~>
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ~>
67
76
  - !ruby/object:Gem::Version
@@ -69,6 +78,7 @@ dependencies:
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: aruba
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - ~>
74
84
  - !ruby/object:Gem::Version
@@ -76,6 +86,7 @@ dependencies:
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - ~>
81
92
  - !ruby/object:Gem::Version
@@ -83,6 +94,7 @@ dependencies:
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: json
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
99
  - - ~>
88
100
  - !ruby/object:Gem::Version
@@ -90,6 +102,7 @@ dependencies:
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
107
  - - ~>
95
108
  - !ruby/object:Gem::Version
@@ -97,6 +110,7 @@ dependencies:
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: nokogiri
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
115
  - - ! '>='
102
116
  - !ruby/object:Gem::Version
@@ -104,6 +118,7 @@ dependencies:
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
123
  - - ! '>='
109
124
  - !ruby/object:Gem::Version
@@ -111,6 +126,7 @@ dependencies:
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: rake
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
131
  - - ! '>='
116
132
  - !ruby/object:Gem::Version
@@ -118,6 +134,7 @@ dependencies:
118
134
  type: :development
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
139
  - - ! '>='
123
140
  - !ruby/object:Gem::Version
@@ -125,6 +142,7 @@ dependencies:
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: rspec
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
147
  - - ! '>='
130
148
  - !ruby/object:Gem::Version
@@ -132,6 +150,7 @@ dependencies:
132
150
  type: :development
133
151
  prerelease: false
134
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
135
154
  requirements:
136
155
  - - ! '>='
137
156
  - !ruby/object:Gem::Version
@@ -139,6 +158,7 @@ dependencies:
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: simplecov
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
163
  - - ! '>='
144
164
  - !ruby/object:Gem::Version
@@ -146,6 +166,7 @@ dependencies:
146
166
  type: :development
147
167
  prerelease: false
148
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
149
170
  requirements:
150
171
  - - ! '>='
151
172
  - !ruby/object:Gem::Version
@@ -153,6 +174,7 @@ dependencies:
153
174
  - !ruby/object:Gem::Dependency
154
175
  name: spork
155
176
  requirement: !ruby/object:Gem::Requirement
177
+ none: false
156
178
  requirements:
157
179
  - - ! '>='
158
180
  - !ruby/object:Gem::Version
@@ -160,6 +182,7 @@ dependencies:
160
182
  type: :development
161
183
  prerelease: false
162
184
  version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
163
186
  requirements:
164
187
  - - ! '>='
165
188
  - !ruby/object:Gem::Version
@@ -167,6 +190,7 @@ dependencies:
167
190
  - !ruby/object:Gem::Dependency
168
191
  name: syntax
169
192
  requirement: !ruby/object:Gem::Requirement
193
+ none: false
170
194
  requirements:
171
195
  - - ! '>='
172
196
  - !ruby/object:Gem::Version
@@ -174,6 +198,7 @@ dependencies:
174
198
  type: :development
175
199
  prerelease: false
176
200
  version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
177
202
  requirements:
178
203
  - - ! '>='
179
204
  - !ruby/object:Gem::Version
@@ -181,6 +206,7 @@ dependencies:
181
206
  - !ruby/object:Gem::Dependency
182
207
  name: bcat
183
208
  requirement: !ruby/object:Gem::Requirement
209
+ none: false
184
210
  requirements:
185
211
  - - ~>
186
212
  - !ruby/object:Gem::Version
@@ -188,6 +214,7 @@ dependencies:
188
214
  type: :development
189
215
  prerelease: false
190
216
  version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
191
218
  requirements:
192
219
  - - ~>
193
220
  - !ruby/object:Gem::Version
@@ -195,6 +222,7 @@ dependencies:
195
222
  - !ruby/object:Gem::Dependency
196
223
  name: kramdown
197
224
  requirement: !ruby/object:Gem::Requirement
225
+ none: false
198
226
  requirements:
199
227
  - - ~>
200
228
  - !ruby/object:Gem::Version
@@ -202,6 +230,7 @@ dependencies:
202
230
  type: :development
203
231
  prerelease: false
204
232
  version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
205
234
  requirements:
206
235
  - - ~>
207
236
  - !ruby/object:Gem::Version
@@ -209,6 +238,7 @@ dependencies:
209
238
  - !ruby/object:Gem::Dependency
210
239
  name: yard
211
240
  requirement: !ruby/object:Gem::Requirement
241
+ none: false
212
242
  requirements:
213
243
  - - ~>
214
244
  - !ruby/object:Gem::Version
@@ -216,6 +246,7 @@ dependencies:
216
246
  type: :development
217
247
  prerelease: false
218
248
  version_requirements: !ruby/object:Gem::Requirement
249
+ none: false
219
250
  requirements:
220
251
  - - ~>
221
252
  - !ruby/object:Gem::Version
@@ -223,6 +254,7 @@ dependencies:
223
254
  - !ruby/object:Gem::Dependency
224
255
  name: capybara
225
256
  requirement: !ruby/object:Gem::Requirement
257
+ none: false
226
258
  requirements:
227
259
  - - ! '>='
228
260
  - !ruby/object:Gem::Version
@@ -233,6 +265,7 @@ dependencies:
233
265
  type: :development
234
266
  prerelease: false
235
267
  version_requirements: !ruby/object:Gem::Requirement
268
+ none: false
236
269
  requirements:
237
270
  - - ! '>='
238
271
  - !ruby/object:Gem::Version
@@ -243,6 +276,7 @@ dependencies:
243
276
  - !ruby/object:Gem::Dependency
244
277
  name: rack-test
245
278
  requirement: !ruby/object:Gem::Requirement
279
+ none: false
246
280
  requirements:
247
281
  - - ! '>='
248
282
  - !ruby/object:Gem::Version
@@ -250,6 +284,7 @@ dependencies:
250
284
  type: :development
251
285
  prerelease: false
252
286
  version_requirements: !ruby/object:Gem::Requirement
287
+ none: false
253
288
  requirements:
254
289
  - - ! '>='
255
290
  - !ruby/object:Gem::Version
@@ -257,6 +292,7 @@ dependencies:
257
292
  - !ruby/object:Gem::Dependency
258
293
  name: ramaze
259
294
  requirement: !ruby/object:Gem::Requirement
295
+ none: false
260
296
  requirements:
261
297
  - - ! '>='
262
298
  - !ruby/object:Gem::Version
@@ -264,6 +300,7 @@ dependencies:
264
300
  type: :development
265
301
  prerelease: false
266
302
  version_requirements: !ruby/object:Gem::Requirement
303
+ none: false
267
304
  requirements:
268
305
  - - ! '>='
269
306
  - !ruby/object:Gem::Version
@@ -271,6 +308,7 @@ dependencies:
271
308
  - !ruby/object:Gem::Dependency
272
309
  name: sinatra
273
310
  requirement: !ruby/object:Gem::Requirement
311
+ none: false
274
312
  requirements:
275
313
  - - ! '>='
276
314
  - !ruby/object:Gem::Version
@@ -278,6 +316,7 @@ dependencies:
278
316
  type: :development
279
317
  prerelease: false
280
318
  version_requirements: !ruby/object:Gem::Requirement
319
+ none: false
281
320
  requirements:
282
321
  - - ! '>='
283
322
  - !ruby/object:Gem::Version
@@ -285,6 +324,7 @@ dependencies:
285
324
  - !ruby/object:Gem::Dependency
286
325
  name: webrat
287
326
  requirement: !ruby/object:Gem::Requirement
327
+ none: false
288
328
  requirements:
289
329
  - - ! '>='
290
330
  - !ruby/object:Gem::Version
@@ -292,6 +332,7 @@ dependencies:
292
332
  type: :development
293
333
  prerelease: false
294
334
  version_requirements: !ruby/object:Gem::Requirement
335
+ none: false
295
336
  requirements:
296
337
  - - ! '>='
297
338
  - !ruby/object:Gem::Version
@@ -579,6 +620,7 @@ files:
579
620
  - features/nested_steps.feature
580
621
  - features/nested_steps_i18n.feature
581
622
  - features/nested_steps_with_second_arg.feature
623
+ - features/parsing.feature
582
624
  - features/pretty_formatter.feature
583
625
  - features/progress_formatter.feature
584
626
  - features/raketask.feature
@@ -892,27 +934,116 @@ files:
892
934
  - spec/spec_helper.rb
893
935
  homepage: http://cukes.info
894
936
  licenses: []
895
- metadata: {}
896
937
  post_install_message:
897
938
  rdoc_options:
898
939
  - --charset=UTF-8
899
940
  require_paths:
900
941
  - lib
901
942
  required_ruby_version: !ruby/object:Gem::Requirement
943
+ none: false
902
944
  requirements:
903
945
  - - ! '>='
904
946
  - !ruby/object:Gem::Version
905
947
  version: '0'
948
+ segments:
949
+ - 0
950
+ hash: -3754938966826455462
906
951
  required_rubygems_version: !ruby/object:Gem::Requirement
952
+ none: false
907
953
  requirements:
908
954
  - - ! '>='
909
955
  - !ruby/object:Gem::Version
910
956
  version: '0'
957
+ segments:
958
+ - 0
959
+ hash: -3754938966826455462
911
960
  requirements: []
912
961
  rubyforge_project:
913
- rubygems_version: 2.0.3
962
+ rubygems_version: 1.8.23
914
963
  signing_key:
915
- specification_version: 4
916
- summary: cucumber-1.3.1
917
- test_files: []
964
+ specification_version: 3
965
+ summary: cucumber-1.3.2
966
+ test_files:
967
+ - features/assertions.feature
968
+ - features/background.feature
969
+ - features/backtraces.feature
970
+ - features/before_hook.feature
971
+ - features/bootstrap.feature
972
+ - features/custom_formatter.feature
973
+ - features/doc_strings.feature
974
+ - features/drb_server_integration.feature
975
+ - features/execute_with_tag_filter.feature
976
+ - features/formatter_callbacks.feature
977
+ - features/formatter_step_file_colon_line.feature
978
+ - features/html_formatter.feature
979
+ - features/iso-8859-1.feature
980
+ - features/json_formatter.feature
981
+ - features/load_path.feature
982
+ - features/nested_steps.feature
983
+ - features/nested_steps_i18n.feature
984
+ - features/nested_steps_with_second_arg.feature
985
+ - features/parsing.feature
986
+ - features/pretty_formatter.feature
987
+ - features/progress_formatter.feature
988
+ - features/raketask.feature
989
+ - features/rerun_formatter.feature
990
+ - features/run_specific_scenarios.feature
991
+ - features/stats_formatters.feature
992
+ - features/step_definitions.feature
993
+ - features/step_definitions/cucumber-features/cucumber_ruby_mappings.rb
994
+ - features/step_definitions/cucumber_steps.rb
995
+ - features/step_definitions/drb_steps.rb
996
+ - features/step_definitions/iso-8859-1_steps.rb
997
+ - features/support/env.rb
998
+ - features/support/feature_factory.rb
999
+ - features/tagged_hooks.feature
1000
+ - features/transforms.feature
1001
+ - spec/cucumber/ast/background_spec.rb
1002
+ - spec/cucumber/ast/doc_string_spec.rb
1003
+ - spec/cucumber/ast/feature_factory.rb
1004
+ - spec/cucumber/ast/feature_spec.rb
1005
+ - spec/cucumber/ast/features_spec.rb
1006
+ - spec/cucumber/ast/outline_table_spec.rb
1007
+ - spec/cucumber/ast/scenario_outline_spec.rb
1008
+ - spec/cucumber/ast/step_spec.rb
1009
+ - spec/cucumber/ast/table_spec.rb
1010
+ - spec/cucumber/ast/tree_walker_spec.rb
1011
+ - spec/cucumber/broadcaster_spec.rb
1012
+ - spec/cucumber/cli/configuration_spec.rb
1013
+ - spec/cucumber/cli/drb_client_spec.rb
1014
+ - spec/cucumber/cli/main_spec.rb
1015
+ - spec/cucumber/cli/options_spec.rb
1016
+ - spec/cucumber/cli/profile_loader_spec.rb
1017
+ - spec/cucumber/configuration_spec.rb
1018
+ - spec/cucumber/constantize_spec.rb
1019
+ - spec/cucumber/core_ext/proc_spec.rb
1020
+ - spec/cucumber/formatter/ansicolor_spec.rb
1021
+ - spec/cucumber/formatter/duration_spec.rb
1022
+ - spec/cucumber/formatter/html_spec.rb
1023
+ - spec/cucumber/formatter/interceptor_spec.rb
1024
+ - spec/cucumber/formatter/junit_spec.rb
1025
+ - spec/cucumber/formatter/pretty_spec.rb
1026
+ - spec/cucumber/formatter/progress_spec.rb
1027
+ - spec/cucumber/formatter/spec_helper.rb
1028
+ - spec/cucumber/rake/forked_spec.rb
1029
+ - spec/cucumber/rake/rcov_spec.rb
1030
+ - spec/cucumber/rb_support/rb_language_spec.rb
1031
+ - spec/cucumber/rb_support/rb_step_definition_spec.rb
1032
+ - spec/cucumber/rb_support/rb_transform_spec.rb
1033
+ - spec/cucumber/rb_support/regexp_argument_matcher_spec.rb
1034
+ - spec/cucumber/rb_support/snippet_spec.rb
1035
+ - spec/cucumber/runtime/for_programming_languages_spec.rb
1036
+ - spec/cucumber/runtime/results_spec.rb
1037
+ - spec/cucumber/runtime/support_code_spec.rb
1038
+ - spec/cucumber/runtime_spec.rb
1039
+ - spec/cucumber/sell_cucumbers.feature
1040
+ - spec/cucumber/step_match_spec.rb
1041
+ - spec/cucumber/wire_support/configuration_spec.rb
1042
+ - spec/cucumber/wire_support/connection_spec.rb
1043
+ - spec/cucumber/wire_support/wire_exception_spec.rb
1044
+ - spec/cucumber/wire_support/wire_language_spec.rb
1045
+ - spec/cucumber/wire_support/wire_packet_spec.rb
1046
+ - spec/cucumber/wire_support/wire_step_definition_spec.rb
1047
+ - spec/cucumber/world/pending_spec.rb
1048
+ - spec/spec_helper.rb
918
1049
  has_rdoc:
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZGEyMTg5N2JlNzMzMWJkYjMyMDNmODk5NWNlNWEyNTQ4ZGFiNGJiYw==
5
- data.tar.gz: !binary |-
6
- YzM2ODg2NDA2ZGZiZTRjNWRhYTNjNjRhZDRkZGIxODMyMWFlMThlMw==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- MWFjNmMzMzJlZmZiYWQxYmM0ZTU5NWY5ZTY5MDI3YTRiOGQ4YmZkYTExZDEx
10
- Y2U0OTU3NThiZWJmZThjNTZmOWE4NTI3OGQ0MWYxY2VlZTdhMjgwOWVkNzIz
11
- MTNjZWExZmRmZTgzMDE2NWFhZWJjNmE1YjU2NzM3MmEyMzUyMDk=
12
- data.tar.gz: !binary |-
13
- YjlkMGViNGE3OWJlZDhjNTQ5MWQyYjQyZjBlMzZjZTFmYzU3M2E1MDYyMWM1
14
- NDk3MTgwMDBlNmFmZDZhMDcxYjhkMTgzYzY3NTYyMTQ0OTk2YjcyY2U0NTMw
15
- ZDFjMzc0OTI2YmMxMDA5YzJkNzc5M2U1NmUwNzRkNjZlOTU3MDY=