For the life of me, I can't get factory_girl
to work in Rails3. I created a brand new application. My Gemfile:
gem "rspec"
gem "rspec-rails"
gem "factory_girl_rails"
The generators in application.rb
like so:
config.generators do |g|
g.test_framework :rspec, :fixture => true, :views => false, :fixture_replacement => :factory_girl
end
Then, using the generator to create a new model:
> rails g model Addon name:string
invoke active_record
create db/migrate/20101223205918_create_addons.rb
create app/models/addon.rb
invoke rspec
create spec/models/addon_spec.rb
error factory_girl [not found]
What'd I miss? I did run bundle install
of course... I tried looking around, but can't find any decent documentation on factory_girl and rails3.