title: factory_girl_rails & Cucumber::undefined
body: <p>Having a problem with making this work. Seems it has been a problem for others and I think I have followed all of the advice.</p>
  
  <p>I've set up a stripped down rails 3 .0.14 app to just include cucumber-rails &amp; factory_girl_rails but still no go. I expect I am doing something silly!</p>
  
  <p>Running the cuc test below produces the following:</p>
  
  <pre><code>Scenario: test factory-girl        # features/users.feature:3
    Given the following user exists: # features/users.feature:4
      | name    | email               |
      | Brandon | brandon@example.com |
      Undefined step: "the following user exists:" (Cucumber::Undefined)
  </code></pre>
  
  <p>The user factory has been created, of which I am sure, with a bit of 'pp' output.
  Would really appreciate any help to get this sorted.</p>
  
  <p>Ross</p>
  
  <p><strong>Set up</strong></p>
  
  <p><em>env.rb: snippet</em></p>
  
  <pre><code>require 'pp'
  require 'cucumber/rails'
  
  require 'factory_girl_rails'
  require 'factory_girl/step_definitions'
  </code></pre>
  
  <p><em>features/support/factories.rb:</em></p>
  
  <pre><code>FactoryGirl.define do
    factory :user do
      name 'Adam Advertiser'
      email 'a@b.com'still
    end   
  end
  pp FactoryGirl.create(:user)
  </code></pre>
  
  <p><em>Cucumber features/user.feature:</em></p>
  
  <pre><code>Feature: a
    Scenario: test factory-girl
      Given the following user exists:
      | name    | email               |
      | Brandon | brandon@example.com |
  </code></pre>