mongoid-pagination
mongoid-pagination copied to clipboard
Feature/total pages
- Fix spec_helper mongoid database configuration
- Create mongoid.yml
- Add total_pages method
- Fix failing test suite
- Formalize default page limit as constant
- Add pry to aid with debugging
Do you understand the error that occurred? Is it something I can fix?
I haven't updated or maintained this repo in a long time. I've updated the list of ruby versions travis looks for, but there are also problems with spec_helper.rb because it's using a very old version of mongoid configuration there. I'd welcome a fix for that in this PR if you want to do it.
I updated the mongoid config in the original PR. Are you sure it is the mongoid config that is causing the issue? You might have to add a sleep before_script as mentioned here: https://docs.travis-ci.com/user/database-setup/ if it is failing to connect.
Might also be failing from the rspec warnings generated from the use of 'should' matchers. Thoughts? I can update those to 'expect' if necessary.