Skip to content

Commit 4dafca7

Browse files
chore(test): enable mongoid use db config from ENV (#155)
* chore(test): enable mongoid use db config from ENV * doc: add change log record * fix: missing comma in changelog
1 parent 1e81f89 commit 4dafca7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* [#145](https://github.com/slack-ruby/slack-ruby-bot-server/pull/145): Added support for Ruby 3.1 - [@dblock](https://github.com/dblock).
66
* [#146](https://github.com/slack-ruby/slack-ruby-bot-server/pull/146): Added support for MongoDB 5.0 - [@dblock](https://github.com/dblock).
77
* [#147](https://github.com/slack-ruby/slack-ruby-bot-server/pull/147): Added support for PostgreSQL 14 - [@dblock](https://github.com/dblock).
8+
* [#155](https://github.com/slack-ruby/slack-ruby-bot-server/pull/155): Enable mongoid to get connection URI from ENV for test - [@crazyoptimist](https://github.com/crazyoptimist).
89
* Your contribution here.
910

1011
#### 1.2.1 (2022/03/06)

spec/database_adapters/mongoid/config/mongoid.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ development:
1111
test:
1212
clients:
1313
default:
14-
database: bot-server_test
15-
hosts:
16-
- 127.0.0.1:27017
14+
uri: <%= ENV["DATABASE_URL"] || 'mongodb://localhost' %>
1715
options:
1816
raise_not_found_error: false
1917
use_utc: true

0 commit comments

Comments
 (0)