How about:

``` ruby
FactoryGirl.factories.inject([]) do |invalid_factories, factory|
```