Sha256: 387aed83e5eae6bb1c14d96f6dad57401a112bb57cd69b55a371adf49a59c5e9
Contents?: true
Size: 744 Bytes
Versions: 62
Compression:
Stored size: 744 Bytes
Contents
require 'test_helper' module Workarea module Admin class ImportTaxesIntegrationTest < Workarea::IntegrationTest include Admin::IntegrationTest def test_can_create_an_import category = create_tax_category post admin.data_file_tax_imports_path, params: { import: { file: Rack::Test::UploadedFile.new(tax_rates_csv_path), tax_category_id: category.id.to_s } } assert_equal(1, DataFile::TaxImport.count) import = DataFile::TaxImport.first assert(import.file.present?) assert(import.created_by_id.present?) category.reload assert_equal(2, category.rates.count) end end end end
Version data entries
62 entries across 62 versions & 1 rubygems
Version | Path |
---|---|
workarea-admin-3.4.13 | test/integration/workarea/admin/import_taxes_integration_test.rb |
workarea-admin-3.4.12 | test/integration/workarea/admin/import_taxes_integration_test.rb |