File tree Expand file tree Collapse file tree 2 files changed +15
-16
lines changed Expand file tree Collapse file tree 2 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 4545
4646Dir [ "#{ File . dirname ( __FILE__ ) } /support/*.rb" ] . each { |file | require file }
4747
48- mongo_db_name = ( ENV [ 'MONGODB_DATABASE' ] || '_ms_rails_test' ) + SecureRandom . hex ( 8 )
49- Mongoid . load_configuration (
50- {
51- clients : {
52- default : {
53- database : mongo_db_name ,
54- hosts : [ ENV [ 'MONGODB_HOST' ] || 'localhost:27017' ] ,
55- options : {
56- read : { mode : :primary } ,
57- max_pool_size : 1
58- }
59- }
60- }
61- }
62- )
63-
6448RSpec . configure do |c |
6549 c . mock_with :rspec
6650 c . filter_run focus : true
Original file line number Diff line number Diff line change 1+ mongo_db_name = ( ENV [ 'MONGODB_DATABASE' ] || '_ms_rails_test' ) + SecureRandom . hex ( 8 )
2+ Mongoid . load_configuration (
3+ {
4+ clients : {
5+ default : {
6+ database : mongo_db_name ,
7+ hosts : [ ENV [ 'MONGODB_HOST' ] || 'localhost:27017' ] ,
8+ options : {
9+ read : { mode : :primary } ,
10+ max_pool_size : 1
11+ }
12+ }
13+ }
14+ }
15+ )
You can’t perform that action at this time.
0 commit comments