defaults: &defaults
  host: 127.0.0.1
  port: 27017
  options:
    w: 1
    pool_size: 1
    slave_ok: false
    ssl: false

development:
  <<: *defaults
  database: router

test:
  <<: *defaults
  database: router_api_test
  w: 0

# set these environment variables on your prod server
production:
  <<: *defaults
  database: router
  username: <%= ENV['MONGO_USERNAME'] %>
  password: <%= ENV['MONGO_PASSWORD'] %>

defaults: &defaults
  host: 127.0.0.1
  port: 27017
  options:
    w: 1
    pool_size: 1
    slave_ok: false
    ssl: false

development:
  <<: *defaults
  database: router

test:
  <<: *defaults
  database: router_api_test

# set these environment variables on your prod server
production:
  <<: *defaults
  database: router
  username: <%= ENV['MONGO_USERNAME'] %>
  password: <%= ENV['MONGO_PASSWORD'] %>

Remove misleading w: option from test mode.
Remove misleading w: option from test mode.

It's misleading because it does nothing as it's not inside the options
hash.  We also don't want this, otherwise the tests ensuring db level
uniqueness constraints will fail
