1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
package Test::BDD::Cucumber::Model::Scenario;
$Test::BDD::Cucumber::Model::Scenario::VERSION = '0.26';
use Moose;
=head1 NAME
Test::BDD::Cucumber::Model::Scenario - Model to represent a scenario
=head1 VERSION
version 0.26
=head1 DESCRIPTION
Model to represent a scenario
=head1 ATTRIBUTES
=head2 name
The text after the C<Scenario:> keyword
=cut
has 'name' => ( is => 'rw', isa => 'Str' );
=head2 steps
The associated L<Test:BDD::Cucumber::Model::Step> objects
=cut
has 'steps' => ( is => 'rw', isa => 'ArrayRef[Test::BDD::Cucumber::Model::Step]', default => sub {[]} );
=head2 data
Scenario-related data table, as an arrayref of hashrefs
=cut
has 'data' => ( is => 'rw', isa => 'ArrayRef[HashRef]', default => sub {[]} );
=head2 background
Boolean flag to mark whether this was the background section
=cut
has 'background' => ( is => 'rw', isa => 'Bool', default => 0 );
=head2 line
A L<Test::BDD::Cucumber::Model::Line> object corresponding to the line where
the C<Scenario> keyword is.
=cut
has 'line' => ( is => 'rw', isa => 'Test::BDD::Cucumber::Model::Line' );
=head2 tags
Tags that the scenario has been tagged with, and has inherited from its
feature.
=cut
has 'tags' => ( is => 'rw', isa => 'ArrayRef[Str]', default => sub {[]} );
=head1 AUTHOR
Peter Sergeant C<pete@clueball.com>
=head1 LICENSE
Copyright 2011-2014, Peter Sergeant; Licensed under the same terms as Perl
=cut
1;
|