1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

I said, Tag is not Renderable

This commit is contained in:
Akira Matsuda 2011-02-14 11:23:52 +09:00
parent f564553920
commit 8a3803697f

View file

@ -3,49 +3,45 @@ include Kaminari::Helpers
describe 'Kaminari::Helpers' do describe 'Kaminari::Helpers' do
describe 'template lookup rule' do describe 'template lookup rule' do
describe 'Tag' do
subject { Tag }
its(:ancestor_renderables) { should == [Tag] }
end
describe 'Paginator' do describe 'Paginator' do
subject { Paginator } subject { Paginator }
its(:ancestor_renderables) { should == [Paginator, Tag] } its(:ancestor_renderables) { should == [Paginator] }
end end
describe 'PrevLink' do describe 'PrevLink' do
subject { PrevLink } subject { PrevLink }
its(:ancestor_renderables) { should == [PrevLink, Prev, Link, Page, Tag] } its(:ancestor_renderables) { should == [PrevLink, Prev, Link, Page] }
end end
describe 'PrevSpan' do describe 'PrevSpan' do
subject { PrevSpan } subject { PrevSpan }
its(:ancestor_renderables) { should == [PrevSpan, Prev, NonLink, Tag] } its(:ancestor_renderables) { should == [PrevSpan, Prev, NonLink] }
end end
describe 'FirstPageLink' do describe 'FirstPageLink' do
subject { FirstPageLink } subject { FirstPageLink }
its(:ancestor_renderables) { should == [FirstPageLink, PageLink, Link, Page, Tag] } its(:ancestor_renderables) { should == [FirstPageLink, PageLink, Link, Page] }
end end
describe 'PageLink' do describe 'PageLink' do
subject { PageLink } subject { PageLink }
its(:ancestor_renderables) { should == [PageLink, Link, Page, Tag] } its(:ancestor_renderables) { should == [PageLink, Link, Page] }
end end
describe 'CurrentPage' do describe 'CurrentPage' do
subject { CurrentPage } subject { CurrentPage }
its(:ancestor_renderables) { should == [CurrentPage, NonLink, Page, Tag] } its(:ancestor_renderables) { should == [CurrentPage, NonLink, Page] }
end end
describe 'TruncatedSpan' do describe 'TruncatedSpan' do
subject { TruncatedSpan } subject { TruncatedSpan }
its(:ancestor_renderables) { should == [TruncatedSpan, NonLink, Tag] } its(:ancestor_renderables) { should == [TruncatedSpan, NonLink] }
end end
describe 'LastPageLink' do describe 'LastPageLink' do
subject { LastPageLink } subject { LastPageLink }
its(:ancestor_renderables) { should == [LastPageLink, PageLink, Link, Page, Tag] } its(:ancestor_renderables) { should == [LastPageLink, PageLink, Link, Page] }
end end
describe 'NextLink' do describe 'NextLink' do
subject { NextLink } subject { NextLink }
its(:ancestor_renderables) { should == [NextLink, Next, Link, Page, Tag] } its(:ancestor_renderables) { should == [NextLink, Next, Link, Page] }
end end
describe 'NextSpan' do describe 'NextSpan' do
subject { NextSpan } subject { NextSpan }
its(:ancestor_renderables) { should == [NextSpan, Next, NonLink, Tag] } its(:ancestor_renderables) { should == [NextSpan, Next, NonLink] }
end end
end end
end end