2011-05-30 50 views
0

Pickle似乎並沒有被加載對我來說,當我使用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 

但是,如果我運行通過叉勺,我得到一個未定義步:

您可以實現與這些片段未定義步驟的步驟定義:

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 

什麼給了?

回答

1

因此,原來有必要features/support/env.rb一個額外的配置線,以有泡椒能夠在AR模型皮卡使用叉勺時,一拉this gist

features/support/env.rb

在這一行添加修復我的問題。這本身就是一個棘手的問題,而不是守衛。我會更新我的問題...