Transpec taxon_spec

This commit is contained in:
Luis Ramos
2020-08-06 11:16:21 +01:00
parent c35b330d25
commit fcbb883244

View File

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