Rails shoulda and factory_girl setup?

Couple things to check: Don't use --source=gems.github.com anymore. This has been deprecated in favor for gemcutter. Org Don't use "thoughtbot-gem_name" - again this was deprecated by gemcutter.org.

Just do sudo gem install factory_girl shoulda Make sure you have config. Gem 'factory_girl' in your config/environments/test. Rb file.

Hhhmm... I have added the line to my test. Rb file and ran the gem install as you suggested, but now I'm getting . /test/test_helper.

Rb:3: uninitialized constant Factory (NameError) when I run the rake test:units command. I have removed the require statement from my test_helper file. – kristian nissen Jun 8 '10 at 19:16 I don't think you need to actually require 'factory_girl' anywhere as long as you have the config.

Gem line. So remove the require, and then move your Factory definitions out of test_helper. Rb into a test/factories.

Rb file. This file gets parsed automatically by Factory Girl at runtime. – Robert Speicher Jun 8 '10 at 20:25 I did remove the require I only use config.

Gem 'factory_girl' – kristian nissen Jun 9 '10 at 10:42 I removed the entire project, uninstalled both gems and started over. It all seems to be working. – kristian nissen Jun 9 '10 at 18:42.

If you are using spork, make sure to restart it. Took me a few moments to realize that.

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.

Related Questions