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