[rspec-users] Cucumber - Ambiguous steps

Pat Maddox pergesu at gmail.com
Sun Sep 14 10:39:11 EDT 2008


>  Then /I should see "(.*)"
>  Then /I should see "(.*)" in the list of authors/
>
> Both of these would respond to:
>
>  Then I should see Aslak in the list of authors

If you change the first one to

Then /I should see "(.*?)"$/

then it should no longer match that string.  Tightening up the regexs
you use should help with the ambiguous steps.

Pat


More information about the rspec-users mailing list