mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-09 07:38:07 -05:00
Support custom port for MongoDB config
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
require 'mongoid/version'
|
||||
|
||||
Mongoid.configure do |config|
|
||||
config.connect_to("devise-test-suite")
|
||||
config.load!('test/support/mongoid.yml')
|
||||
config.use_utc = true
|
||||
config.include_root_in_json = true
|
||||
end
|
||||
|
||||
6
test/support/mongoid.yml
Normal file
6
test/support/mongoid.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
test:
|
||||
sessions:
|
||||
default:
|
||||
database: devise-test-suite
|
||||
hosts:
|
||||
- localhost:<%= ENV['MONGODB_PORT'] || '27017' %>
|
||||
Reference in New Issue
Block a user