Sha256: 7203a56ae7c9bcb08794ca7a2023754f2192fb5fcd594168c7f8e4ff5d39305e

Contents?: true

Size: 283 Bytes

Versions: 4

Compression:

Stored size: 283 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

4 entries across 4 versions & 1 rubygems

Version Path
csv_import_magic-0.0.8 spec/factories/importer.rb
csv_import_magic-0.0.7 spec/factories/importer.rb
csv_import_magic-0.0.6 spec/factories/importer.rb
csv_import_magic-0.0.5 spec/factories/importer.rb