当我运行黄瓜它显示我应该定义,一个例子从RSpec的书 可能的步骤:黄瓜:自动创建步骤文件?
1 scenario (1 undefined)
4 steps (4 undefined)
0m0.001s
You can implement step definitions for undefined steps with these snippets:
Given /^I am not yet playing$/ do
pending
end
When /^I start a new game$/ do
pending
end
Then /^the game should say “Welcome to CodeBreaker”$/ do
pending
end
Then /^the game should say “Enter guess:”$/ do
pending
end
有没有一种方式,它将会被自动创建步骤定义文件,所以我不必须 手动重写或复制粘贴,但我可以将它们定制为更通用?
感谢;),但可能会有一些默认值。 – 2009-07-13 13:01:58
也有约定,在功能/ step_definitions – 2009-07-13 13:03:25