Skip to content

Commit

Permalink
I said, Tag is not Renderable
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Feb 14, 2011
1 parent f564553 commit 8a38036
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions spec/helpers/tags_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,45 @@

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

0 comments on commit 8a38036

Please sign in to comment.