Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

PIVOTAL LABS
Standup 3.17.2011 — will_paginate render and devise testing

Help

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?

Interesting Things

  • 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!

Comments
Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *