Install capybara-email gem
Add failing acceptance test for password reset
Use token digest in password reset email

Starting in version 3.1.0 (plataformatec/devise@143794d), Devise began
expecting the password reset links to contain an HMAC digest of the
token, not the raw token itself.

The version of Devise used by courtfinder changed from 2.2.3 to 3.2.4 in
March (a3e8a7d) but the mailer template wasn’t updated to use the
digest, silently breaking the password reset functionality.
Switch to Ruby 1.9 syntax in Devise views

This is the style that Devise has used since version 3.2.4
(plataformatec/devise@aea82d0), so we should match our style to make it
easier to apply upstream template changes.
Regenerate Devise views

This was just `rails generate devise:views`. The confirmation and unlock
templates were broken in the same way as the password reset one (a332abb);
we’re not using that functionality at the moment, but we might as well
bring the views up to date and avoid the problem recurring in future.
Merge pull request #211 from ministryofjustice/fix-password-reset

lgtm