There was a lot of duplicate code in the controller tests building the connection, the user, and logging in the user.
This PR extracts that to Pairmotron.LoginHelper which is automatically imported via use Pairmotron.ConnCase.
Controller Tests have also had their actions separated out by describes to allow for shortened test descriptions and easier future test implementation.
There was a lot of duplicate code in the controller tests building the connection, the user, and logging in the user.
This PR extracts that to
Pairmotron.LoginHelper
which is automatically imported viause Pairmotron.ConnCase
.Controller Tests have also had their actions separated out by describes to allow for shortened test descriptions and easier future test implementation.