machine:
  ruby:
    version: 2.2.0

dependencies:
  post:
    - cd spec/rails && bundle install

test:
  override:
    - bundle exec rake test
    - bundle exec rake rails:test

machine:
  ruby:
    version: 2.2.0

dependencies:
  post:
    - cd spec/rails && (bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3)

test:
  override:
    - bundle exec rake test
    - bundle exec rake rails:test

Fix bundle install command in rails directory
Fix bundle install command in rails directory
