Sha256: 03d48820087e9626501678f23cc1bf66fbaa2e630885641a5e7beb02756c2de3
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
Contents
Feature: Argument Transformation As a user of cuke4php I want to use step argument transforms So that I can simplify my code Example transforms can be found in WireSteps.php Scenario: An argument is transformed to an integer Given I store "123" into "Foo" Then "Foo" should be a kind of "integer" Scenario: use a transform to substitute variable in arguments Given I store "foo" into "Bar" And I store "{Bar}" into "Foo" Then "Foo" should equal "foo" Scenario: An argument is transformed, but the second defined transform wins Given I store "abcd" into "Foo" Then "Foo" should equal "ABCD" Scenario: transform a table Given "table" is: | reverse | | one | | two | | three | Then "table" should equal: | reverse | | three | | two | | one | Scenario: transform a table with two columns Given "table" is: | KEY | VALUE | | one | a | | two | b | | three | c | Then "table" should equal: | KEY | VALUE | | ONE | A | | TWO | B | | THREE | C |
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cuke4php-0.9.10 | features/transform.feature |
cuke4php-0.9.9 | features/transform.feature |
cuke4php-0.9.8 | features/transform.feature |
cuke4php-0.9.6.c | features/transform.feature |