Ruby version not working for me

I have the following in my .circle.yml

    version: 2.3.0
    - bundle exec rake travis

When bundle install runs its using ruby 1.9 though not 2.3.0 and my tests are failing because of it. Anyone have ideas?

I found having a .ruby-version file with 2.3.0 as it’s only contents was what I needed to make sure to have, and I ended up removing the ruby definition from the circle.yml file and everything started to run properly.