OSDN Git Service

slight improvement to behat step regex
authorscribu <mail@scribu.net>
Tue, 14 Jan 2014 20:12:54 +0000 (22:12 +0200)
committerscribu <mail@scribu.net>
Wed, 15 Jan 2014 18:56:46 +0000 (20:56 +0200)
features/steps/given.php

index 998a013..5998f0d 100644 (file)
@@ -87,7 +87,7 @@ $steps->Given( '/^download:$/',
        }
 );
 
-$steps->Given( '/^save (STDOUT|STDERR) ([\'].+[^\'])?as \{(\w+)\}$/',
+$steps->Given( '/^save (STDOUT|STDERR)( [\'].+[^\'])? as \{(\w+)\}$/',
        function ( $world, $stream, $output_filter, $key ) {
 
                if ( $output_filter ) {