From 8a3803697fb7c03947f677e77dc46927486296b7 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Mon, 14 Feb 2011 11:23:52 +0900 Subject: [PATCH] I said, Tag is not Renderable --- spec/helpers/tags_spec.rb | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/spec/helpers/tags_spec.rb b/spec/helpers/tags_spec.rb index add4cbfe5..7fe7265d3 100644 --- a/spec/helpers/tags_spec.rb +++ b/spec/helpers/tags_spec.rb @@ -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