开发者

Pickle with cucumber, machinist and Mongoid

I'm using pickle 0.3.0 with rails, cucumber and mongoid. I do found that pickle0.3.0 automatically finds the ORM. But while I wrote a cucumber scenario and tested it, It didn't find any pickle steps.

Here is the sample:

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

But didn't find pickle step

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

and generates this error

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

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

Any Ideas?


After using pickle 0.4. Error was solved.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜