当我使用spork时,泡菜似乎没有为我加载......
如果我正常运行黄瓜,则该步骤按预期工作:
➜ bundle exec cucumber
And a product exists with name: "Windex", category: "Household Cleaners", description: "nasty bluish stuff" # features/step_definitions/pickle_steps.rb:4
但是如果我通过 spork 运行它,我会得到一个未定义的步骤:
您可以使用以下代码片段为未定义的步骤实现步骤定义:
Given /^a product exists with name: "([^"]*)", category: "([^"]*)", description: "([^"]*)"$/ do |arg1, arg2, arg3|
pending # express the regexp above with the code you wish you had
end
是什么赋予了?