thoughtbot/factory_girl — Issue #281: traits "fall off" of the inheritance chain after first degree of inheritance
Author: ryanfields
Created: 2012-01-22 22:19:27+00:00
State: open

```ruby
FactoryGirl.define do
factory :event do
trait :upcoming do
occurs_at Date.today + 1.day
end
end

factory :structured_event, :parent => :event do
end

factory :staffed_event, :parent => :structured_event do
end
end
```

I can do `FactoryGirl.create(:structured_event, :upcoming)`, but trying `FactoryGirl.create(:staffed_event, :upcoming)` results in a `Trait not registered: upcoming`

I would expect that traits *should* remain defined down any number of levels of inheritance.