[rspec-users] regex help

Jonathan Linowes jonathan at parkerhill.com
Sun Dec 28 23:59:29 EST 2008


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



More information about the rspec-users mailing list