Skip to content

Commit

Permalink
Cannot quite test the failing scenarios with Test::Cuke it self. Spli…
Browse files Browse the repository at this point in the history
…t those tests to another place.
  • Loading branch information
gugod committed Dec 12, 2010
1 parent 03ddcf4 commit 68c5af3
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions t/runtest.t
Expand Up @@ -13,11 +13,6 @@ Feature: foo
When it is my birthday
Then we will eat 28 cakes
Scenario: Failed assertion leads to skipping remaining steps
Given anything
When I fail this step
Then I skip this one
FEATURE_TEXT

my @passed;
Expand Down Expand Up @@ -53,18 +48,4 @@ Then qr/we will eat (\d+) (.+)/ => sub {
. " correctly passed to the step functions";
};


Given qr/anything/ => sub {
assert "Anything is ok";
ok 1, "passed Given";
};

When qr/fail/ => sub {
assert 0 == 1;
};

Then qr/skip/ => sub {
ok 0, "This shoudln't be executed at all!";
};

runtests;

0 comments on commit 68c5af3

Please sign in to comment.