spec/models/archive_page_spec.rb in radiant-archive-extension-1.0.2 vs spec/models/archive_page_spec.rb in radiant-archive-extension-1.0.3
- old
+ new
@@ -36,10 +36,10 @@
its(:single_use_children){ should == [ArchiveDayIndexPage, ArchiveMonthIndexPage, ArchiveYearIndexPage, FileNotFoundPage]}
its(:allowed_children){ should == [Page, *ArchivePage.single_use_children]}
describe '#existing_child_types' do
it 'should return a unique array of classes of the page children' do
- archive.existing_child_types.should == archive.children.all(:select => 'DISTINCT class_name').collect{|p| p.class }.uniq
+ archive.existing_child_types.should == archive.children.all(:select => 'DISTINCT class_name, title, virtual').collect{|p| p.class }.uniq
end
end
describe '#allowed_children' do
context 'when no children exist' do
\ No newline at end of file