spec/models/brightcontent/page_spec.rb in brightcontent-pages-2.0.22 vs spec/models/brightcontent/page_spec.rb in brightcontent-pages-2.0.23

- old
+ new

@@ -32,9 +32,14 @@ it "persists the slug" do page = create(:page, name: "About us", parent: homepage).reload page.slug.should eq "homepage/about-us" end + + it "creates a path for multiple children" do + about_us = create(:page, name: "About us", parent: homepage) + create(:page, name: "More", parent: about_us).path.should eq "/homepage/about-us/more" + end end end describe ".homepage?" do subject { create(:page, name: "Homepage") }