I think problem is related to the loading of your factory. Just write this in your test_helper. Rb file.
I think problem is related to the loading of your factory. Just write this in your test_helper. Rb file require 'factory_girl' Dir.
Glob(File. Dirname(__FILE__) + "/factories/*"). Each do |factory| require factory end OR require 'factory_girl' Factory.
Find_definitions.
Yeah, it was loading related. Moving the factory file in the spec dir solved the problem. – Tempus Mar 14 at 13:21 3 btw, change Factory.
Find_definitions to FactoryGirl. Find_definitions Factory has been depreceated – daniel Aug 29 at 22:11 Just did it and I got a message to change Factory. Find_definitions to FactoryGirl.
Find_definitions. – dimitris mistriotis Oct 30 at 19:16.
I had the same issue, but it turns out that I simply named my file wrong (factories.rb. Rb, thanks to Netbeans). I discovered a few things that would be useful to this page, though.
From the getting started page. Factory girl should automatically load the following files if they exist: test/factories. Rb spec/factories.
Rb test/factories/*. Rb spec/factories/*. Rb Putting the following in test_helper.
Rb can cause double loading: require 'factory_girl' Factory. Find_definitions This caused me to get a `add_as': Already defined: error. The factory_girl_rails gem automatically loads factory_girl.
It's unnecessary, but doesn't appear to have any side effects. I discovered that the FactoryGirl syntax has changed quite a bit since I first learned it in March 2011. I highly recommend everyone check out the getting started page to see some of the changes.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.