OSDN Git Service

t#31470:create pager
[pettanr/pettanr.git] / spec / controllers / artists_controller_spec.rb
index 1409863..f36053e 100644 (file)
@@ -60,6 +60,10 @@ if MagicNumber['run_mode'] == 1
         assigns(:artists).should have_at_least(3).items
       end
       context 'html形式' do
+        it '@paginateにページ制御を取得している' do
+        get :index
+          assigns(:paginate).is_a?(Kaminari::PaginatableArray).should be_true
+        end
         it 'indexテンプレートを描画する' do
           get :index
           response.should render_template("index")