mongoid-pagination icon indicating copy to clipboard operation
mongoid-pagination copied to clipboard

Feature/total pages

Open howmuchcomputer opened this issue 8 years ago • 3 comments

  • 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

howmuchcomputer avatar May 17 '17 03:05 howmuchcomputer

Do you understand the error that occurred? Is it something I can fix?

howmuchcomputer avatar May 22 '17 06:05 howmuchcomputer

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.

ajsharp avatar May 23 '17 18:05 ajsharp

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.

howmuchcomputer avatar May 26 '17 22:05 howmuchcomputer