Sha256: 90d6b5f17a948d020f232ec4c47d4d17dcf478b8a77365f78445e20badc0a905
Contents?: true
Size: 504 Bytes
Versions: 1
Compression:
Stored size: 504 Bytes
Contents
require 'test_helper' module Workarea module Admin class GlobalEOrderViewModelTest < Workarea::TestCase def test_discount_total product = create_product order = create_order order.add_item(sku: product.skus.first, quantity: 1) order.discount_adjustments.create!( price: 'item', amount: -5.to_m ) view_model = OrderViewModel.wrap(order) assert_equal(5.to_m, view_model.discount_total) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-global_e-1.2.1 | test/view_models/workarea/admin/global_e_order_view_model_test.rb |