Add custom shipping category to pass package spec

This commit is contained in:
Dan Ingenthron
2019-09-26 22:21:04 -05:00
parent 560fa6b949
commit 543e275d2e
2 changed files with 2 additions and 2 deletions

View File

@@ -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]

View File

@@ -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