t/pherkin/match-only/step_definitions/match_steps.pl
raw| 1 | |
| 2 | use strict; |
| 3 | use warnings; |
| 4 | |
| 5 | use Test::BDD::Cucumber::StepFile; |
| 6 | |
| 7 | |
| 8 | Given qr/^\Qa step with step function that calls die()\E$/, sub { |
| 9 | die "This step function calls die()"; |
| 10 | }; |
| 11 | |
| 12 | When qr/^\Qthere are further steps with associated step functions\E$/, sub { |
| 13 | }; |
| 14 | |
| 15 | Then qr/^\QI expect all steps to be matched\E$/, { 'meta' => 'data' }, sub { |
| 16 | }; |
| 17 |