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