Adjusting spec helper to work with rails 4.1