title: During cucumber testing Factory already registered: user (FactoryGirl::DuplicateDefinitionError)
body: <p>in gemfile. i have added factory_girls_rails.</p>
  
  <pre><code>group :test do
    gem 'cucumber-rails'
    gem 'capybara'
    gem 'database_cleaner'
    gem 'factory_girl_rails'
  end
  
  group :development, :test do
    gem 'rspec-rails'
  end
  </code></pre>
  
  <p>in features/support/env.rb require factories from spec/factories.rb </p>
  
  <pre><code>require 'cucumber/rails'
  require "#{Rails.root}/spec/factories"
  </code></pre>
  
  <p>in spec/factories.rb</p>
  
  <pre><code>FactoryGirl.define do
    factory :user do
      first_name "John"
      last_name  "Doe"
      admin false
    end
  end
  </code></pre>
  
  <p>and in spec/spec_helper i have require require 'factory_girl_rails'</p>
  
  <pre><code>ENV["RAILS_ENV"] ||= 'test'
  require File.expand_path("../../config/environment", __FILE__)
  require 'rspec/rails'
  require 'rspec/autorun'
  require 'factory_girl_rails'
  
  # Requires supporting ruby files with custom matchers and macros, etc, 
  # in spec/support/ and its subdirectories.
  Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f} 
  </code></pre>
  
  <p>now i got following error ...plz suggest me any body as well also write step defination for use this factories.rb.</p>
  
  <p>manish@ubuntu:~/change/test_cucumber$ cucumber features/sign_up.feature 
  Factory already registered: user (FactoryGirl::DuplicateDefinitionError)
  /home/manish/.rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.2.0/lib/factory_girl        /decorator.rb:10:in <code>method_missing'
  /home/manish/.rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.2.0/lib/factory_girl/decorator/disallows_duplicates_registry.rb:6:in</code>register'
  /home/manish/.rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.2.0/lib/factory_girl.rb:65:in <code>block in register_factory'
  /home/manish/.rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.2.0/lib/factory_girl.rb:64:in</code>each'
  /home/manish/.rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.2.0/lib/factory_girl.rb:64:in <code>register_factory'
  /home/manish/.rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.2.0/lib/factory_girl/syntax/default.rb:20:in</code>factory'
  /home/manish/change/test_cucumber/spec/factories.rb:2:in <code>block in &lt;top (required)&gt;'
  /home/manish/.rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.2.0/lib/factory_girl/syntax/default.rb:49:in</code>instance_eval'
  /home/manish/.rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.2.0/lib/factory_girl/syntax/default.rb:49:in <code>run'
  /home/manish/.rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.2.0/lib/factory_girl/syntax/default.rb:7:in</code>define'
  /home/manish/change/test_cucumber/spec/factories.rb:1:in <code>&lt;top (required)&gt;'
  /home/manish/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in</code>require'
  /home/manish/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in <code>block in require'
  /home/manish/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in</code>load_dependency'
  /home/manish/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in <code>require'
  /home/manish/change/test_cucumber/features/support/env.rb:8:in</code>'</p>
  
  <p>thanks in advance.</p>