OSDN Git Service

t#31470:create pager
[pettanr/pettanr.git] / spec / controllers / original_pictures_controller_spec.rb
index fd6c341..8a06063 100644 (file)
@@ -60,6 +60,10 @@ if MagicNumber['run_mode'] == 1
         assigns(:original_pictures).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")