mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
Add custom shipping category to pass package spec
This commit is contained in:
@@ -48,7 +48,7 @@ module Stock
|
||||
describe '#shipping_categories' do
|
||||
it "returns shipping categories that are not shipping categories of the order's products" do
|
||||
package
|
||||
other_shipping_category = create(:shipping_category)
|
||||
other_shipping_category = Spree::ShippingCategory.create(name: "Custom")
|
||||
|
||||
expect(package.shipping_categories).to eq [shipping_method1.shipping_categories.first,
|
||||
other_shipping_category]
|
||||
|
||||
@@ -10,7 +10,7 @@ describe DefaultShippingCategory do
|
||||
|
||||
describe 'find_or_create' do
|
||||
context 'when a Default category already exists' do
|
||||
let! :category do
|
||||
let!(:category) do
|
||||
Spree::ShippingCategory.create!(name: 'Default')
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user