FactoryGirl.define do factory :gemgento_import, :class => 'Gemgento::Import' do type "" file "" total_rows 1 current_row 1 options "MyText" state 1 errors "MyText" end end