On 5 August 2014 15:38, Diego Dillenburg Bueno <[email protected]> wrote: > Hello all, > > I'm still learning rails and trying to dive into TDD as early as possible, > but I got a problem which I couldn't solve. The deal is that I'm trying to > activate the FactoryGirl Syntax and getting an "unitialized constant > FactoryGirl (NameError)" when attempting to run my specs. > > Would appreciate any help given! > > Ps.: I'm reading Aaron Sumner's Everyday Rails Specs book, but it uses an > older version of the gems, I don't know if the new RSpec has something to do > with it, as now I got 2 files(rails_helper and spec_helper) differente from > the old structure. > > For more information here is the repository link if you need more specific > information about gemfile/spec configurations and such: > > https://github.com/diegodillenburg/codero/tree/dev
I don't see Gemfile there. What is in that file? Have a look at railstutorial.org (which is free to use online). It uses factorygirl and is up to date. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLv7Ndq3yZpvm9_LFa0zp25F%3DdOXPKR%2BkXoHfstCf3%3D5HQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

