diff --git a/app/models/page.rb b/app/models/page.rb index fb607a4c..950b055c 100644 --- a/app/models/page.rb +++ b/app/models/page.rb @@ -9,6 +9,7 @@ class Page include Models::Extensions::Page::Render include Models::Extensions::Page::Templatized include Models::Extensions::Page::Redirect + include Models::Extensions::Page::Unlisted ## fields ## field :title diff --git a/spec/models/page_spec.rb b/spec/models/page_spec.rb index 54b1130c..22bfaa6d 100644 --- a/spec/models/page_spec.rb +++ b/spec/models/page_spec.rb @@ -205,6 +205,18 @@ describe Page do end end + + describe 'unlisted extension' do + + before(:each) do + @page = Factory.build(:page, :site => nil, :unlisted => true, :content_type_id => 42) + end + + it 'is considered as a unlisted page' do + @page.unlisted?.should be_true + end + + end describe 'redirect extension' do