Fixing codeclimate code in spec_helper.rb