Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Github Readme has failing instruction

#31

In the section describing how to leverage Factory Girl in Pickle, it suggests putting the following line in features/support/factory_girl.rb:

require File.dirname(__FILE__) + '/../../spec/factories'

When running cucumber features, you get an error, "Factory already defined", as described here:

http://groups.google.com/group/factory_girl/browse_thread/thread/4d...

I managed to fix this issue by using this line instead:

require "#{RAILS_ROOT}/spec/factories.rb"

When you get a chance, please update the documentation on the Github project Readme.

Regards,

Reported by Paul Jensen · September 12th, 2010 @ 02:49 PM

State: new
Milestone: none
Assigned to: Ian White Ian White

Activity

  1. Paul Jensen
    Paul Jensen

    Change "RAILS_ROOT" to Rails.root.to_s, otherwise you get this deprecation message:

    DEPRECATION WARNING: RAILS_ROOT is deprecated. Please use ::Rails.root.to_s.
    

    September 12th, 2010 @ 03:05 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.