Refractor hashes in expectations to ruby 2.x style
Refractor out url from before:each to let block