1

我想模拟编辑 best_in_place 表单用黄瓜测试它

When /^I fill in change first name to "([^\"]*)"$/ do |value|
  bip_text(User, :first_name, value)
end

undefined method `bip_text' for #<Cucumber::Rails::World:0x00000005665850> (NoMethodError)
4

1 回答 1

2

在 features/support 中创建一个名为 的文件best_in_place_helpers.rb,或者您喜欢的任何名称。

内容应该是:

include BestInPlace::TestHelpers
于 2013-04-21T03:55:21.407 回答