mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Remove unused StockLocation#backorderable?
This commit is contained in:
@@ -35,9 +35,5 @@ module Spree
|
||||
def count_on_hand(variant)
|
||||
stock_item(variant).try(:count_on_hand)
|
||||
end
|
||||
|
||||
def backorderable?(variant)
|
||||
stock_item(variant).try(:backorderable?)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -30,9 +30,5 @@ module Spree
|
||||
it 'finds a count_on_hand for a variant' do
|
||||
expect(subject.count_on_hand(variant)).to eq 15
|
||||
end
|
||||
|
||||
it 'finds determines if you a variant is backorderable' do
|
||||
expect(subject.backorderable?(variant)).to eq false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user