我有以下简单的黄瓜步:这个黄瓜为什么不解析?
Given I submit "Father father father help us" in reply to "Where is the love?"
我也已经有黄瓜步:
Given /^I submit "([^"]*)" in reply to "([^"]*)"$/ do |reply, question|
...
end
我每次运行它虽然在最后的问号发送解析器不稳定和我回来了以下内容:
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
为什么不是这个解析正确,我能做些什么来纠正它?
我没有仔细检查以确定(同时做出其他更改),但我怀疑这几乎肯定是问题所在。 –