Sha256: a2718abdcbd862e120adcc3e7ba11b038f374daab88cc6d22599f70b46e481a3

Contents?: true

Size: 284 Bytes

Versions: 4

Compression:

Stored size: 284 Bytes

Contents

include ActionDispatch::TestProcess

FactoryGirl.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.4 spec/factories/importer.rb
csv_import_magic-0.0.3 spec/factories/importer.rb
csv_import_magic-0.0.2 spec/factories/importer.rb
csv_import_magic-0.0.1 spec/factories/importer.rb