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:
parent
f564553920
commit
8a3803697f
1 changed files with 10 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue