[rspec-users] Cucumber - Ambiguous steps

Pat Maddox
Sun, 14 Sep 2008 14:39:11 -0000

>  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