File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 413
413
end
414
414
415
415
context 'when the options create a new cluster' do
416
+ retry_test
416
417
# This test fails on sharded topologies in Evergreen but not locally
417
418
require_topology :single , :replica_set
418
419
Original file line number Diff line number Diff line change 204
204
205
205
Mongoid . configure { |config | config . load_configuration ( configuration ) }
206
206
207
- expect ( Mongoid ::Config . discriminator_key ) . to be ( "_type" )
207
+ expect ( Mongoid ::Config . discriminator_key ) . to eq ( "_type" )
208
208
end
209
209
end
210
210
215
215
216
216
Mongoid . configure { |config | config . load_configuration ( configuration ) }
217
217
218
- expect ( Mongoid ::Config . discriminator_key ) . to be ( "test" )
218
+ expect ( Mongoid ::Config . discriminator_key ) . to eq ( "test" )
219
219
end
220
220
221
221
it 'is set globally' do
222
- expect ( Mongoid . discriminator_key ) . to be ( "test" )
222
+ expect ( Mongoid . discriminator_key ) . to eq ( "test" )
223
223
end
224
224
end
225
225
end
260
260
let ( :conf ) { CONFIG }
261
261
262
262
it "it is set to its default" do
263
- expect ( Mongoid . send ( option ) ) . to be ( default )
263
+ expect ( Mongoid . send ( option ) ) . to eq ( default )
264
264
end
265
265
end
266
266
end
You can’t perform that action at this time.
0 commit comments