Behat/Mink — Issue #172: Modify assertUrlRegExp to only accept matching regexp pattern
Author: proofek
Created: 2012-01-12 20:51:16+00:00
State: open

At the moment the step definition for it is like this: @Then /^the (?i)url(?-i) should match "(?P(?:[^"]|\\")*)"$/

Change it so it looks like this:

@Then /^the (?i)url(?-i) should match (?P(?:[^"]|\\")*)$/

and only accepts regexp patterns, so in scenarios it will look like this after the changes:

the url should match /pattern/