Update stock item count on hand in Spree core specs

This commit is contained in:
Kristina Lim
2020-05-14 15:23:31 +08:00
committed by Luis Ramos
parent 13ecf0ec73
commit 774b3720d5

View File

@@ -8,7 +8,7 @@ RSpec.describe Spree::StockItem do
subject { stock_location.stock_items.order(:id).first }
it 'maintains the count on hand for a variant' do
expect(subject.count_on_hand).to eq 10
expect(subject.count_on_hand).to eq 15
end
it "can return the stock item's variant's name" do