machine:
  ruby:
    version: 2.2.2

database:
  override:
    # replace CircleCI's generated database.yml
    # this gem uses sqlite in a dummy app anyway
    - echo "noop"

test:
  pre:
    # build dummy app
    - bundle exec rake test_app:
        environment:
          RAILS_ENV: test
          RACK_ENV: test

machine:
  ruby:
    version: 2.2.2

database:
  override:
    # replace CircleCI's generated database.yml
    # this gem uses sqlite in a dummy app anyway
    - echo "noop"

test:
  pre:
    - gem install bundler --pre
    - bundle exec rake test_app:
        environment:
          RAILS_ENV: test
          RACK_ENV: test

Add install bundler for latest version
Add install bundler for latest version
