Skip to content

Commit

Permalink
Transpec taxon_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
luisramos0 committed Sep 1, 2020
1 parent f46e835 commit b556c55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/models/spree/taxon_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b556c55

Please sign in to comment.