[rspec-users] regex help

Emmanuel Pinault seatmanu at gmail.com
Mon Dec 29 00:33:57 EST 2008


Are the steps doing anything different?  I mean it seems like selected| 
first|second are part of  .* so you can put that specific logic in the  
step I would thing and have one step to handle them all

Or then  just change slightly your sentence  so they don t overlap

Emmanuel



On Dec 28, 2008, at 8:59 PM, Jonathan Linowes wrote:

> Hi,
> Could someone help me resolve this conflict:
>
>
>    Then the selected item should have a <label> tag with "Foo:"
>
> Multiple step definitions match "the selected item should have a  
> <label> tag with \"Foo:\"": (Cucumber::Multiple)
>
> features/step_definitions/page_builder_steps.rb:355:in `/^the  
> (selected|first|second|last) item should have a \<(.*)\> tag with  
> "(.*)"/'
>
> features/step_definitions/browser_steps.rb:117:in `/^the (.*) should  
> have a \<(.*)\> tag with "(.*)"/'
>
>
> Perhaps tell it to ignore any matches with " item" in it, but dont  
> know how
>
> linoj
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users



More information about the rspec-users mailing list