Sha256: 490d10a2c0be7125e202c3f4d8b5e0f7280922a7f15b23a8175e3a386fe603ae

Contents?: true

Size: 325 Bytes

Versions: 3

Compression:

Stored size: 325 Bytes

Contents

FactoryGirl.define do
  factory :import do
    importer_key "importer"
    import_file { 
      ActionDispatch::Http::UploadedFile.new({ filename: 'importer.xlsx',
      tempfile: File.new("lib/rails_importer/templates/importer.xlsx")
    })}
  end

  factory :invalid_import, class: Import do
    importer_key nil
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_importer-0.2.1 lib/rails_importer/factories.rb
rails_importer-0.2.0 lib/rails_importer/factories.rb
rails_importer-0.1.0 lib/rails_importer/factories.rb