rvm:
  - 2.1.0

before_install: gem update --remote bundler

before_script:
  - "cp config/database.sample.yml config/database.yml"
  - "psql -c 'create role neighborly SUPERUSER LOGIN;' postgres"
  - "psql -c 'create database neighborly_test;' -U neighborly postgres"
  - "sh -e /etc/init.d/xvfb start"
  - "bundle exec rake db:migrate"
  - "RAILS_ENV=test bundle exec rake spec:javascript"

env:
  - DISPLAY=:99.0

script:
  - "bundle exec rspec spec"

rvm:
  - 2.1.1

before_install: gem update --remote bundler

before_script:
  - "cp config/database.sample.yml config/database.yml"
  - "psql -c 'create role neighborly SUPERUSER LOGIN;' postgres"
  - "psql -c 'create database neighborly_test;' -U neighborly postgres"
  - "sh -e /etc/init.d/xvfb start"
  - "bundle exec rake db:migrate"
  - "RAILS_ENV=test bundle exec rake spec:javascript"

env:
  - DISPLAY=:99.0

script:
  - "bundle exec rspec spec"

Update Ruby version on Travis CI
Update Ruby version on Travis CI
