[rspec-users] Cucumber - Ambiguous steps

David Chelimsky
Sun, 14 Sep 2008 18:08:57 -0000

On Sep 14, 2008, at 9:39 AM, "Pat Maddox" <pergesu at gmail.com>
wrote:

>> 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.

D''oh!

Thanks Pat.

David