Sha256: 95f6b5044418c7589298b2b130a6b41c24bef177d4d55d070004e3a557ee07ef
Contents?: true
Size: 438 Bytes
Versions: 5
Compression:
Stored size: 438 Bytes
Contents
require 'spec_helper' describe Page do before do setup_tree Page, <<-ENDTREE - home - page1: - page2 - page4 ENDTREE end it 'fails validation when slug is not unique under one parent' do # ::Page.create(:slug => 'home',:title => 'home').should have(1).error_on(:slug) nodes(:page1).children.create(:slug => 'page2', :title => 'page2').should have(1).error_on(:slug) end end
Version data entries
5 entries across 5 versions & 1 rubygems