Note that there are some explanatory texts on larger screens.

plurals
  1. POUndefined Pickle step (again)
    primarykey
    data
    text
    <p><a href="https://stackoverflow.com/questions/5282437/cucumber-pickle-factory-girl-given-a-returning-undefined-step">https://stackoverflow.com/questions/5282437/cucumber-pickle-factory-girl-given-a-returning-undefined-step</a> - this post didn't help me a lot.</p> <p>Gemfile:</p> <pre><code>gem 'rails' # 3.0.5 gem 'capybara' # 1.1.1 gem 'rspec-rails' # 2.6.1 gem 'cucumber-rails' # 1.0.5 gem 'database_cleaner' gem 'factory_girl_rails' # 1.2.0 gem 'email_spec' gem 'pickle' # 0.4.8 </code></pre> <p>I do:</p> <pre><code>rails new pickle_test bundle install rails g cucumber:install rails g rspec:install rails g pickle --paths --email rails g scaffold category title:string rake db:migrate rake db:test:prepare cucumber </code></pre> <p>I have:</p> <pre><code>$ cucumber Using the default profile... Feature: Manage categories Scenario: list existed categories # features/manage_categories.feature:3 Given a category exists, title: "First category ever" # features/manage_categories.feature:4 Undefined step: "a category exists, title: "First category ever"" (Cucumber::Undefined) features/manage_categories.feature:4:in `Given a category exists, title: "First category ever"' When I go to the categories page # features/step_definitions/web_steps.rb:48 Then I should see "First category ever" # features/step_definitions/web_steps.rb:105 1 scenario (1 undefined) 3 steps (2 skipped, 1 undefined) 0m0.127s You can implement step definitions for undefined steps with these snippets: Given /^a category exists, title: "([^"]*)"$/ do |arg1| pending # express the regexp above with the code you wish you had end </code></pre> <p>Note that I did nothing to configure this test app anyhow and I don't use factory_girl or anything rather then ActiveRecord. I'm confident it should work from there. Pickle itself is loaded (tested with puts), cucumber runs using environments/test.rb. </p> <p>What I am missing?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload