Why does:
fi = FactoryGirl.create(:finder_item, store_id: s.id, :category_foo, :random_question)
throw an error finder_item_spec.rb:20: syntax error, unexpected ',', expecting tASSOC (SyntaxError)
but simply re-ordering so the the traits are before the assignment works fine:
fi = FactoryGirl.create(:finder_item, :category_foo, :random_question, store_id: s.id)
One of your arguments is not just symbol type – it’s
:key => value, and for a FG order of arguments with different types is something that matters.