【问题标题】:Ruby on Rails: test best in place field with cucumberRuby on Rails:用黄瓜测试最佳现场
【发布时间】:2013-03-02 12:49:21
【问题描述】:

我想模拟编辑 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)

【问题讨论】:

    标签: ruby-on-rails cucumber best-in-place


    【解决方案1】:

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

    内容应该是:

    include BestInPlace::TestHelpers
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多