Skip to content

Commit

Permalink
Merge pull request #54 from chylli/fix-pod-link
Browse files Browse the repository at this point in the history
fix Test::BDD::Cucumber::StepContext link in the tutorial pod
  • Loading branch information
Peter Sergeant committed Feb 2, 2015
2 parents 56a63f9 + 4d523d5 commit f218777
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Test/BDD/Cucumber/Manual/Tutorial.pod
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ it's called I<Check MD5>. Scenarios are marked out using the C<Scenario:>
keyword, and just like the Background section before, it's a series of steps.

These steps rely on the step before, which means we can examine the
L<Test::Builder::StepContext|context> object C<$c> a little more closely.
L<Test::BDD::Cucumber::StepContext|context> object C<$c> a little more closely.

Given qr/a Digest (\S+) object/, sub {
my $c = shift;
Expand All @@ -165,15 +165,15 @@ L<Test::Builder::StepContext|context> object C<$c> a little more closely.
Creates a step definition. We create a new L<Digest> object, and then use
L<Test::More>'s C<ok()> function to check that worked. We then put it in the
I<stash> for other steps to use. There are three stashes documented in
L<Test::Builder::StepContext>, C<feature>, C<scenario> and C<step>. As you might
L<Test::BDD::Cucumber::StepContext>, C<feature>, C<scenario> and C<step>. As you might
expect, C<feature> is available to all step definitions that are being executed
as part of a feature, and C<scenario> is available to all steps that are being
executed as part of a scenario.

The context is the single argument that gets passed to each step, and it
contains evertything that step should need to execute. We'll be looking at some
of the methods you can call against it as we look at other steps, and you can
find complete documentation for it here: L<Test::Builder::StepContext>.
find complete documentation for it here: L<Test::BDD::Cucumber::StepContext>.

You'll note that the code above differs from the very first example, where we
made use of C<C> and C<S>. C<C> is a function which returns the current context,
Expand Down

0 comments on commit f218777

Please sign in to comment.