I have the following simple cucumber step:
Given I submit "Father father father help us" in reply to "Where is the love?"
I also already have the cucumber step:
Given /^I submit "([^"]*)" in reply to "([^"]*)"$/ do |reply, question|
...
end
Each time I run it though, the question mark at the end sends the parser wobbly and I get back the following:
You can implement step definitions for undefined steps with these snippets:
Given /^I submit "([^"]*)" in reply to Where is the love\?$/ do |arg1|
pending # express the regexp above with the code you wish you had
end
Why isn’t this parsing correctly and what can I do to correct it?
The suggested step definition above doesn’t correspond to that Cucumber step. I suspect you have a near-identical step somewhere else in your feature files but without the quotes around “Where is the love?”.