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

- old
+ new

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