Sha256: 34e443fcff0d098df2a55330ab4abd7a04ee772c2bf0eb2e8962868883a7f682

Contents?: true

Size: 291 Bytes

Versions: 2

Compression:

Stored size: 291 Bytes

Contents

include ActionDispatch::TestProcess

FactoryBot.define do
  factory :importer do
    attachment { fixture_file_upload(File.join(ENGINE_RAILS_ROOT, 'spec/fixtures/companies.csv')) }
    source { 'company' }
    columns { %w(name number city state) }
    importable { build(:user) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
csv_import_magic-0.0.11 spec/factories/importer.rb
csv_import_magic-0.0.10 spec/factories/importer.rb