thoughtbot/factory_girl — Issue #306: DuplicateDefinitionError when defining a :post factory
Author: complex
Created: 2012-03-06 06:47:00+00:00
State: open

In spec/factories/post_factory.rb:

```
FactoryGirl.define do
factory :post do

user
title Faker::Lorem.sentence
body Faker::Lorem.paragraphs

end
end
```

If I change `factory :post` to `factory :a_post` or anything else, it works fine. The only other factories I have defined are user and session (and those work fine).

Am I doing something wrong, or is there some internal post factory that is automatically defined which prevents me from using that name?