How do I test a custom will_paginate renderer?
If using RSpec, test the custom render in a helper spec by using helper.will_paginate and the options you need to test your rendering settings.
When testing with Devise, my custom Devise views are not loading in the specs, instead Devise’s default views are. Why?
- When using Devise in integration test, users were logged in when they shouldn’t have been. The culprit was that in the integration test there was before block that logged a user in and in the same scope a pending test. The logged in user was never officially logged in, so later in the test suite a view that did not require login had a logged in user. Be careful how you log in users and clean your session!