Github Readme has failing instruction
Reported by Paul Jensen | September 12th, 2010 @ 02:49 PM
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,
Comments and changes to this ticket
-
Paul Jensen September 12th, 2010 @ 03:05 PM
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.
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Assign tickets to <b>Ian White</b>, so I get notified