Difference between factory_girl and factory_girl_rails Ruby Gems
问题 Is there a difference between factory_girl and factory_girl_rails Ruby Gems? I have a recurring problem with an error in RSpec Testing: "uninitialized constant FactoryGirl (NameError)". Somebody told me that there is a difference between the two (this is really confusing) and one needs the other to work or something along those lines? My spec_helper file has both: require 'factory_girl' require 'factory_girl_rails' My Gemfile has: gem 'factory_girl_rails' Here is the full error: uninitialized