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 'template lookup rule' do
describe 'Tag' do
subject { Tag }
its(:ancestor_renderables) { should == [Tag] }
end
describe 'Paginator' do
subject { Paginator }
its(:ancestor_renderables) { should == [Paginator, Tag] }
its(:ancestor_renderables) { should == [Paginator] }
end
describe 'PrevLink' do
subject { PrevLink }
its(:ancestor_renderables) { should == [PrevLink, Prev, Link, Page, Tag] }
its(:ancestor_renderables) { should == [PrevLink, Prev, Link, Page] }
end
describe 'PrevSpan' do
subject { PrevSpan }
its(:ancestor_renderables) { should == [PrevSpan, Prev, NonLink, Tag] }
its(:ancestor_renderables) { should == [PrevSpan, Prev, NonLink] }
end
describe 'FirstPageLink' do
subject { FirstPageLink }
its(:ancestor_renderables) { should == [FirstPageLink, PageLink, Link, Page, Tag] }
its(:ancestor_renderables) { should == [FirstPageLink, PageLink, Link, Page] }
end
describe 'PageLink' do
subject { PageLink }
its(:ancestor_renderables) { should == [PageLink, Link, Page, Tag] }
its(:ancestor_renderables) { should == [PageLink, Link, Page] }
end
describe 'CurrentPage' do
subject { CurrentPage }
its(:ancestor_renderables) { should == [CurrentPage, NonLink, Page, Tag] }
its(:ancestor_renderables) { should == [CurrentPage, NonLink, Page] }
end
describe 'TruncatedSpan' do
subject { TruncatedSpan }
its(:ancestor_renderables) { should == [TruncatedSpan, NonLink, Tag] }
its(:ancestor_renderables) { should == [TruncatedSpan, NonLink] }
end
describe 'LastPageLink' do
subject { LastPageLink }
its(:ancestor_renderables) { should == [LastPageLink, PageLink, Link, Page, Tag] }
its(:ancestor_renderables) { should == [LastPageLink, PageLink, Link, Page] }
end
describe 'NextLink' do
subject { NextLink }
its(:ancestor_renderables) { should == [NextLink, Next, Link, Page, Tag] }
its(:ancestor_renderables) { should == [NextLink, Next, Link, Page] }
end
describe 'NextSpan' do
subject { NextSpan }
its(:ancestor_renderables) { should == [NextSpan, Next, NonLink, Tag] }
its(:ancestor_renderables) { should == [NextSpan, Next, NonLink] }
end
end
end