From 751f82e7fdd7a04676653d7947298a9c5e82294d Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Thu, 6 Aug 2020 11:16:21 +0100 Subject: [PATCH] Transpec taxon_spec --- spec/models/spree/taxon_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/spree/taxon_spec.rb b/spec/models/spree/taxon_spec.rb index 135b512cd3cf..e6d55b4b230b 100644 --- a/spec/models/spree/taxon_spec.rb +++ b/spec/models/spree/taxon_spec.rb @@ -65,8 +65,8 @@ module Spree context "with parent taxon" do before do - taxon.stub parent_id: 123 - taxon.stub parent: build(:taxon, permalink: "brands") + allow(taxon).to receive_messages parent_id: 123 + allow(taxon).to receive_messages parent: build(:taxon, permalink: "brands") end it "should set permalink correctly when taxon has parent" do