Factory Girl では、次のようなことができます。
FactoryGirl define 
  factory :post do
    content  "some content"
    styles   "styles here"
    team     1
  end
end
ただし、ファクトリ ブロック内で次のようなことを試してみると、次のようになります。
  factory :post do
    content  "some content"
    styles   "styles here"
    team     1
    my_dictionary {'a' => 1, 'b' => 2}
  end
my_dictionary はディクショナリ タイプとして解釈されません。FactoryGirl 内の属性として辞書を作成する方法がわかりません。誰でも私を助けることができますか?