Sha256: 854b29f9c082182d5282f353bd058cb5e53dfbf4edb144570c46235edab54055

Contents?: true

Size: 372 Bytes

Versions: 4

Compression:

Stored size: 372 Bytes

Contents

require 'test_helper'

module Workarea
  class InventoryNotificationTest < TestCase
    def test_mark_as_sent_should_set_the_sent_at_timestamp
      notificaiton = InventoryNotification.create!(
        product_id: 'AB1',
        sku: 'A01',
        email: 'test@workarea.com'
      )

      notificaiton.mark_as_sent!
      assert(notificaiton.sent_at)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
workarea-inventory_notifications-2.1.5 test/models/workarea/inventory_notification_test.rb
workarea-inventory_notifications-2.1.4 test/models/workarea/inventory_notification_test.rb
workarea-inventory_notifications-2.1.3 test/models/workarea/inventory_notification_test.rb
workarea-inventory_notifications-2.1.2 test/models/workarea/inventory_notification_test.rb