File tree 2 files changed +15
-16
lines changed 2 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 45
45
46
46
Dir [ "#{ File . dirname ( __FILE__ ) } /support/*.rb" ] . each { |file | require file }
47
47
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
-
64
48
RSpec . configure do |c |
65
49
c . mock_with :rspec
66
50
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