0
Я использую pickle 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
Любые идеи?
Отметьте этот вопрос/ответ, я использую mongo mapper, но вы, вероятно, можете сделать что-то похожее с монгоидом. http://stackoverflow.com/questions/3273184/how-do-i-get-cucumber-and-pickle-working-with-mongo-mapper-machinist-and-machin/3283915#3283915 –