ElixirCLE / pairmotron

Programming Pair Pairifier
https://pairmotron.herokuapp.com
5 stars 4 forks source link

Extract login setup for controller tests #105

Closed mbramson closed 7 years ago

mbramson commented 7 years ago

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.