Used rails named paths instead of slashy routes
Refactored tests by extracting a method