File: scenario.t

package info (click to toggle)
libtest-cukes-perl 0.11-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 140 kB
  • sloc: perl: 311; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 565 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env perl -w
use strict;
use Test::More tests => 2;
use Test::Cukes::Scenario;

my $scenario = Test::Cukes::Scenario->new(<<SCENARIO_TEXT);
Scenario: Some random scenario text
  Given the pre-conditions is there
  When it branches into the second level
  Then the final shall be reached
SCENARIO_TEXT

is($scenario->name, "Some random scenario text");
is_deeply($scenario->steps, ["Given the pre-conditions is there",
                             "When it branches into the second level",
                             "Then the final shall be reached"]);