Skip to content

Commit c70f8f7

Browse files
committed
Update database.yml.sample: add separate test db
Prior to this change, `config/database.yml` was configured such that running tests would be executed against the dev db. This would result in the dev db being destroyed after tests. This change ensures that the tests are executed against a separate test db and that the dev db persists while testing.
1 parent 3b44ec0 commit c70f8f7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

config/database.yml.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ development:
1313

1414
test:
1515
<<: *defaults
16+
database: <%= ENV.fetch('TEST_DB_NAME', 'roadmap_test') %>

0 commit comments

Comments
 (0)