add rake to gemfile
refactor spec helper