Sha256: 9b41d222486b3e28b7f9ea4e51ab8625c53106d45638581e5053090180e1cd5e

Contents?: true

Size: 641 Bytes

Versions: 54

Compression:

Stored size: 641 Bytes

Contents

# Initially generated with PgRails::SystemSpecGenerator
# https://github.com/martin-rosso/pg_rails

require 'rails_helper'

# By default uses selenium_chrome_headless_iphone driver
# run with DRIVER environment variable to override, eg:
#
# DRIVER=selenium rspec
describe 'Page sizes' do
  let(:logged_user) { create :user, :developer }

  before do
    login_as logged_user
    create_list :cosa, 8
  end

  describe 'some case' do
    it do
      visit '/a/cosas?page_size=2'
      expect(page).to have_css('.page-item', count: 6)
      visit '/a/cosas?page_size=5'
      expect(page).to have_css('.page-item', count: 4)
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
pg_rails-7.6.28 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.27 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.26 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.25 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.24 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.24.pre.5 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.24.pre.4 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.24.pre.3 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.23 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.22 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.22.pre.3 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.22.pre.2 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.22.pre.1 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.21 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.21.pre.11 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.21.pre.10 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.21.pre.9 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.21.pre.8 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.21.pre.7 pg_engine/spec/system/page_sizes_spec.rb
pg_rails-7.6.21.pre.6 pg_engine/spec/system/page_sizes_spec.rb