Sha256: 54a6f67cd17e59f44b23e2379cdf4a03bd94a815e61d7a00634e4cd6f50d4afb
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
# frozen_string_literal: true require 'spec_helper' describe SolidusPagy::Configuration do before do SolidusPagy.configure do |config| config.nav_helper = 'pagy_nav' config.page = 1 config.items = 20 config.outset = 0 config.orders_per_page = 15 config.properties_per_page = 15 config.promotions_per_page = 15 config.admin_products_per_page = 10 config.admin_variants_per_page = 20 end end it 'read nav_helper value' do expect(SolidusPagy.config.nav_helper).to be('pagy_nav') end it 'read page value' do expect(SolidusPagy.config.page).to be(1) end it 'read items value' do expect(SolidusPagy.config.items).to be(20) end it 'read outset value' do expect(SolidusPagy.config.outset).to be(0) end it 'read orders_per_page value' do expect(SolidusPagy.config.orders_per_page).to be(15) end it 'read properties_per_page value' do expect(SolidusPagy.config.properties_per_page).to be(15) end it 'read promotions_per_page value' do expect(SolidusPagy.config.promotions_per_page).to be(15) end it 'read admin_products_per_page value' do expect(SolidusPagy.config.admin_products_per_page).to be(10) end it 'read admin_variants_per_page value' do expect(SolidusPagy.config.admin_variants_per_page).to be(20) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_pagy-1.0.0 | spec/solidus_pagy/configuration_spec.rb |