https://github.com/cj/protector_pagination
https://github.com/cj/protector_pagination
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cj/protector_pagination
- Owner: cj
- Created: 2013-07-05T21:49:22.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-07-05T21:57:40.000Z (about 13 years ago)
- Last Synced: 2025-10-07T05:00:21.640Z (9 months ago)
- Language: Ruby
- Size: 121 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
To test please run:
- rake db:create
- rake db:seed
- rails s
Then just visit the root and you'll see just one row printed but the pagination says there are 4 rows. If you remove restrict! you'll see the correct amount of rows for the pagination displayed. If you also add in the scope manuall like Post.where(can_view: true).page(1) you'll see the pagination is correct too.