我有以下簡單的黃瓜步:這個黃瓜爲什麼不解析?
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
爲什麼不是這個解析正確,我能做些什麼來糾正它?
我沒有仔細檢查以確定(同時做出其他更改),但我懷疑這幾乎肯定是問題所在。 –