Sunspot Solr not working

I am having trouble trying to get sunspot solr working with my specs in circle ci. Everything works well locally, but on CircleCI rails cant find solr. I believe the problem is a common one: sunspot.yml file is being generated with a unwanted path attribute:

mkdir -p config
echo “test:
solr:
hostname: localhost
port: 8981
path: /solr
”> config/sunspot.yml

How do I change the default generation of sunspot.yml to avoid having path?