[rspec-users] cucumber ambiguous match

Ben Mabey ben at benmabey.com
Sat Feb 28 20:54:44 EST 2009


Joe Van Dyk wrote:
>       Ambiguous match of "a volunteer 'Joe' from 'Cincinnati'":
>
>       features/step_definitions/user_steps.rb:1:in `/^a volunteer '(.*)'$/'
>       features/step_definitions/user_steps.rb:5:in `/^a volunteer
> '(.*)' from '(.*)'$/'
>
>
> Don't see how that's ambiguous.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>   
Try making your captures non-greedy (with ?). 

-Ben


More information about the rspec-users mailing list