Sha256: bf9b4ea1c582290e7cc5c23b9c4873ea2d3595c305268ce283f8e04335d7502c
Contents?: true
Size: 668 Bytes
Versions: 3
Compression:
Stored size: 668 Bytes
Contents
require 'test_helper' module Workarea module Orderbot class ImportInventoryTest < TestCase def test_inventory_importer Workarea.config.orderbot_api_email_address = "test@workarea.com" Workarea.config.orderbot_api_password = "foobar" assert_equal(0, Workarea::Orderbot::ImportLog.count) Workarea::Orderbot::InventoryImporter.new.perform # uses Workarea::Orderbot::BogusGateway assert_equal(4, Workarea::Inventory::Sku.count) log = Workarea::Orderbot::ImportLog.where(importer: "inventory").first assert(log.started_at.present?) assert(log.finished_at.present?) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems