Skip to content

Commit

Permalink
Transpec taxon_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
luisramos0 committed Aug 6, 2020
1 parent 28ca7af commit 751f82e
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 751f82e

Please sign in to comment.