0
需要一些帮助来摆脱此错误。无法通过黄瓜这一步。使用黄瓜步骤定义时的模糊匹配
And I fill in "Email" with "[email protected]" # features/developer_registration.feature:9
Ambiguous match of "I fill in "Email" with "[email protected]"":
features/step_definitions/developer_steps.rb:9:in `/^I fill in "(.*?)" with "(.*?)"$/'
features/step_definitions/developer_steps.rb:31:in `/^I fill in "(.*?)" with "(.*?)"$/'
这部分在steps.rb处理这一步。
When(/^I fill in "(.*?)" with "(.*?)"$/) do |email, password|
fill_in "[email protected]", with: email # express the regexp above with the code you wish you had
fill_in "1", with: password
end