+ end
+
+ describe '他作家の色地一覧ページ制御に於いて' do
+ before do
+ GroundColor.stub(:count).with(any_args).and_return(100)
+ end
+ it 'ページ制御を返す' do
+ r = GroundColor.himlist_paginate @other_author
+ r.is_a?(Kaminari::PaginatableArray).should be_true
+ end
+ it '他作家の色地一覧の取得条件を利用している' do
+ GroundColor.stub(:himlist_where).with(any_args).and_return('')
+ GroundColor.should_receive(:himlist_where).with(any_args).exactly(1)
+ r = GroundColor.himlist_paginate @other_author
+ end
+ it 'ページ件数10のとき、3ページ目のオフセットは20から始まる' do
+ r = GroundColor.himlist_paginate @other_author, 3, 10
+ r.limit_value.should eq 10
+ r.offset_value.should eq 20
+ end
+ end
+
+ describe '一覧取得オプションに於いて' do