Sha256: 4bfe76d31f708c89ae8ac7471494f451d1a9c5e2511e43593f872b352064f890
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Spree::Admin::StockLocationsController, type: :controller do stub_authorization! let!(:stock_location) { create(:stock_location) } context 'with pagination' do it 'can page through the promotions' do get :index, params: { page: 1 } expect(assigns[:pagy].page).to eq(1) expect(assigns[:pagy].items).to eq(10) end end describe '#index' do it 'returns 200' do get :index expect(assigns[:collection]).not_to be_empty expect(assigns[:collection]).to include(stock_location) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_pagy-1.0.0 | spec/controllers/spree/admin/stock_locations_controller_spec.rb |