From 5928eba767acab1729f8f878ffd8849574f5c1d1 Mon Sep 17 00:00:00 2001 From: Arun Kumar Mohan Date: Sat, 17 Oct 2020 19:59:21 -0500 Subject: [PATCH] Use build to validate objects from the shipping method factory --- spec/models/spree/shipping_method_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/spree/shipping_method_spec.rb b/spec/models/spree/shipping_method_spec.rb index 12e3b818a1..b1ed1c8a89 100644 --- a/spec/models/spree/shipping_method_spec.rb +++ b/spec/models/spree/shipping_method_spec.rb @@ -4,7 +4,7 @@ module Spree describe ShippingMethod do it "is valid when built from factory" do expect( - build_stubbed( + build( :shipping_method, shipping_categories: [Spree::ShippingCategory.new(name: 'Test')] )