Added an unlisted flag
This commit is contained in:
parent
7d529f22d7
commit
6ba65b1b96
@ -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
|
||||
|
@ -206,6 +206,18 @@ describe Page do
|
||||
|
||||
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
|
||||
|
||||
before(:each) do
|
||||
|
Loading…
Reference in New Issue
Block a user