ausaccessfed/rapid-rack — pull request #4 by smangelsdorf (2014-12-05 23:25:40+00:00)
Title: Add test-mode authenticator to use with Capybara style tests

It's not possible in Capybara examples to trap a redirect and inject different behaviour, so we need to support an alternate code path for use in this case.

This approach expects the test case to inject a JWT, and presents a plain login form with only a button which simulates the post from Rapid Connect.