FactoryGirl.define do
  factory :topic, :class => Forem::Topic do |t|
    t.subject "FIRST TOPIC"
    t.forum {|f| f.association(:forum) }
    t.user {|u| u.association(:user) }
    t.posts_attributes { [Factory.attributes_for(:post)] }

    trait :approved do
      after_create { |topic| topic.approve! }
    end

    factory :approved_topic, :traits => [:approved]
  end

end

FactoryGirl.define do
  factory :topic, :class => Forem::Topic do |t|
    t.subject "FIRST TOPIC"
    t.forum {|f| f.association(:forum) }
    t.user {|u| u.association(:user) }
    t.posts_attributes { [Factory.attributes_for(:post)] }

    trait :approved do
      after_create { |topic| topic.approve! }
    end

    factory :approved_topic, :traits => [:approved]
  end
end

Switch to using traits to define approved_topic/approved_post factories
Switch to using traits to define approved_topic/approved_post factories
