泡菜用黄瓜,机械师和Mongoid

时间:2010-07-16 09:35:43

标签: cucumber pickle mongoid

我正在使用带有铁轨,黄瓜和mongoid的泡菜0.3.0。我发现pickle0.3.0会自动找到ORM。但是当我写一个黄瓜情景并测试它时,它没有发现任何泡菜步骤。

以下是样本:

Scenario: logging in user
  Given the following users exists
  |name|
  |John|
  |white|

但是没找到泡菜步骤

# create models from a table
Given(/^the following #{capture_plural_factory} exists?:?$/) do |plural_factory, table|
  create_models_from_table(plural_factory, table)
end

并生成此错误

You can implement step definitions for undefined steps with these snippets:

Given /^the following users should exists$/ do |table|
  # table is a Cucumber::Ast::Table
  pending # express the regexp above with the code you wish you had
end

任何想法?

1 个答案:

答案 0 :(得分:1)

使用泡菜0.4后。错误已经解决。